HTML - An Interesting Form Question...
Right, I want to create a navbar for a site I'm working on.
The site structure works like this: Code: -index.php -edit.php?id=# -delete.php?id=# -new.php What I want the navbar to look like is this: Code: --------------------------- |EDIT DELETE NEW [input box]| --------------------------- Where edit, delete and new are 64x32px images. I want each of those images when clicked, send the user to that link, using the input box's number. IE, the input box has 21 in it. User clicks EDIT. User gets linked to edit.php?id=21 OR, user clicks delete. User gets linked to delete.php?id=21 Can it be done, and how? Thanks! -Girvo Similar TutorialsHi gang, Have an interesting XHTML/CSS problem - I may be missing something simple, but it's had me stumped for 40 minutes. Much appreciation (and a paypalled bottle of beer if requested ;-) ) to anyone who can solve in Firefox, IE6 and IE7. ------------------ I have a div, called "logobox", centered in the middle of the page. "Logobox" will have 1-4 "logo" elements inside. The logobox is 160px wide & the logos are 80px each, floated left. So if there are 2 logos, they appear alongside each other in 1 row. If there are 4 logos, they are aligned 2x2 alongside each other. This behaviour needs to stay. Here's the problem: If there are 3 logos (or 1 logo), the 3rd logo needs to be *centered* within logobox, not floated to the left/right. So, if there are 3 logos for example, here's the desired layout: -------------Logo Box--------------------- | Logo Logo | | | | Logo | ---------------------------------------------- And here's the current layout: -------------Logo Box--------------------- | Logo Logo | | | | Logo | -------------------------------------------- XHTML/CSS solutions only - server-side processing not allowed as the html is XML-->XSLT generated; JavaScript solutions not allowed because styling with JS is evil. :-) Current HTML: <div id="logobox"> <div class="logo"><img alt="(logoname)" src="images/logo1.jpg"/></div> <div class="logo"><img alt="(logoname)" src="images/logo2.jpg"/></div> <div class="logo"><img alt="(logoname)" src="images/logo3.jpg"/></div> <div class="logo"><img alt="(logoname)" src="images/logo4.jpg"/></div> </div> Current CSS: #logobox { clear:both; margin:13px auto 10px; text-align:center; width:160px; } .logo { background:#FFFFFF none repeat scroll 0 0; border:5px solid #FFFFFF; float:left; height:30px; text-align:center; width:70px; } Cheers, - SuperGrover Hi, how can I position a <form> om my page in html? WHat or how does it work? please give example. thanks Hi. I want to make a form with an input field in one table cell and the submit button in another cell. How can i do this? Parashurama I have created a form that just consist of a comments section and a submit button. Right now it is set to email the comments posted. The problem is we would like to keep the persons identity secret. See, when the person hits submit it brings up their email software and sends the email with their email address. We dont want to know their email address. So question is - is there a way of sending the email when they hit submit w/o us seeing their email address? or is there a different way of the person sending their comments w/o us knowing who it came from? Thanks! here is my html: <table><form method= "post" enctype="text/plain" action="mailto:my@my.com"> <colgroup align="left" valign="top"> <tr> <td>Comments:</td> <td><textarea name="comments" rows="5" cols="70" /></textarea></td> </tr> <tr> <td></td> <td><input type="submit" value="Submit" />  <input type="reset" value="Clear" /></td> </tr> </colgroup> </table> Hello, Please forgive me if this makes no sense at all, I have been trying to figure this out for awhile now and just dont really understand forms. I am trying to figure out how to make the form on my website work. http://www.legrandmotorsports.com/service_status/ The purpose of the form is to have customers enter their service tag number, click submit, and be able to view the status of their service work. Heres what I am trying to do... Whether or not its possible, I dont know? I would upload the service status html pages by thier tag number under the service_status directory. Example: legrandmotorsports.com/service_status/4151.html Now, my question is, is there a way to set this form up, so that the number the customers typed in, would be automatically put into the link "legrandmotorsports.com/service_status/SERVICE NUMBER HERE.HTML" Then whenever they click submit, the number they typed, would be added to the link, taking them to their service status updates. Is this possible? Or do you have any recommendations on how I could/should do this? Any help is grately appreciated. Pete Hey, I am relatively new to html and had a quesiton concerning html forms. I am familiar with how to display the form on the site and have the user submit it, but how can i retrieve that data automatically (real time preferred) and post it on the page without doing anything else myself. specifically, how can i have a user input a link and have the html code automatically add it to a page? Any help would be appreciated. Hi guys, I have a client who's on a budget and has a unique need in one of their forms on the website. They are a shuttle company that caters to college students. In the form, there will be a drop-down option for University, and when you choose one, a second drop-down field needs to appear below to select the dormitory, from a list. I wanted to know if anyone had any simple, affordable ideas to get this done. Any feedback is appreciated, thanks alot! You guys have helped me alot in the past and I thank you. -Nick Intuition Designs LLC Hello, I am new to posting on HTMLforums.com. I have a quick question for someone that has a good understanding of HTML (and most likely JS). On the front page of SWFL.cc I have a search box to the left. It is connected to the php search functionality in the Open-Realty Script. I would like to know if there is a way to get this functionality: I have the Purchase/Rental drop down, and I would like to know if there is any way to change the price variables depending on the selection of the purchase/rental drop down. If this is possible, could someone point me in the right direction to figure out how to go about doing this. Thank You, Brian Meyer Hey all. I haven't designed a website in over 5 years and am extremely rusty. I'm trying to create a contact form and i have a question. When i hit submit it opens up outlook and just fills in the too with the e-mail i choose and the body has the content of the form. I don't want it to do this. When i hit submit i want it to send the contents of the form to an e-mail of my choosing and then take you to another page that says "Thank You for your submission" or something along those lines. Right now i have: <form action="MAILTO:example@example.com" method="post" enctype="text/plain"> <h3>Please fill out the form below and someone will be in touch with you shortly.</h3> Name: <br/> <input type="text" name="name"/> <br/> City: <br/> <input type="text" name="city"/> <br/> State: <br/> <input type="text" name="state"/> <br/> Zip Code: <br/> <input type="text" name="zip"/> <br/> Phone #: <br/> <input type="text" name="phone"/> <br/> E-Mail: <br/> <input type="text" name="email" /> <br/> Comment: <br/> <textarea rows="10" cols="80" wrap="physical" name="comments"> </textarea> <br/> <br/> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form> What am i missing and how do i go about doing what i want? Thanks in advance!! I have another HTML form question....when I used http://www.forms4free.com, neither they nor Freedback have information about adding javascript for format, do you guys no of any good tutorials on Javascript for form validation? Using the following code, how can I have the information sent to the email address and also redirected to another page when the user clicks submit. <html> <body> <FORM METHOD = Post action="mailto:code.bro@verizon.net" Enctype="text/plain"> First Name: <input type ="text" name="firstname"/>   Last Name: <input type ="text" name="lastname"/> <br/> <br/><dd/> Comments orSuggestions: <br/><dd/> <textarea name="comment" rows="10" cols="50"></textarea> </textarea> <input name="redirect" Type="hidden" value="index.html"> <input name="next_url" Type="hidden" value="index.html"> <br>           <input type = "submit" value="send"> <input type = "reset" value="clear"> </form> </body> </html> Hey friends, its s quick question. I have a linux hostin plan on godaddy.com Theres a page for join us. I have a contact form there, but that form can also be submitted without entering any information. I want a contact form which can not be submitted without ebntring required details. Please help~~~ im going to have a flash code with an html code inside. theres a link to where the flash player is getting the information from which includes a ID number. all i want to do it make a submit form or whatever i'd need, si i can just type in an ID (example: 134579) and it'd put the numbers inside the code and show that ID's information. any help? thanks in advance. so in the end of a form you normally have a submit button which sends it off to an email addy, but i want what the users put in the form fields to come up on their page instead i think this involves editing the FORM ACTION="" part, but dont know what to do if what i'm trying to do is confusing you, what i mean is there's a few drop down menus and comment boxs, they fill them in, click submit and what it would normally create to email someone comes up in an html page for them to see what they put I have very limited HTML training, but I'm trying to find out how to write some HTML code that will allow a website or blog visitor to: 1. Enter their email address in a form field 2. Select a choice from a drop down menu Once they've done that and hit a submit button, I would like to have the info emailed to me. I know this is possible, but is it possible to have this text on a blog like Blogger, or do I have to have my own webpage with specific settings or formats? Thank you so much in advance. Hi all, I have a directory on my website that is password protected... I'd like to set it up so the first page a visitor sees has an option to log in (with username/password form field) or register with a full form to collect their information. Right now all visitors see is an ugly gray box that asks for username and password. How can I do this? All files in the directory (including PDFs etc.) have to stay protected. Thanks! -Lynn I understand this is the HTML section and I'll be posting a little Java. Let's say you're going to take an online quiz to see your IQ. To 'check' the answer your query has to be sent and checked with an existing copy/data, right? If I wanted to see the answer to question three on the IQ test where would I find the existing copy/data? For instance, how would I figure out the answer? HTML Code: <p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="bLight" nowrap valign="middle"> <!-- Screen Reader Anchor--> <a name="question_34"><img src="/images/spacer.gif" width=1 height=1 alt="Question 34 text" border="0"></a> <span class="questionNumber"> Question 34</span> </td> <td class="bLight" align="right" colspan="5" nowrap valign="middle"> <span class="points">2 points</span> </td> <td class="bLight" align="right" nowrap valign="middle"> <a href="javascript:saveItem('_12398139_1','34')" class="inlineAction">Save</a> </td> </tr> <tr> <td valign="middle" align="center" rowspan="2"> </td> <td colspan=2 valign="top" width="100%"> <label for="True/False-_4495108_1"><!--RsQ_002-->The sky is blue.</label> </td> </tr> <tr> <td colspan=2 valign="top"> <a name="question_34_answers"><img src="/images/spacer.gif" width=1 height=1 alt="Question 34 answers" border="0"></a> <table> <script type="text/javascript"> formCheckList.addElement(new Check_Answer({ref_label:"34",name:"tf-ans-_12398139_1"})); </script> <tr> <td> <input type=radio name="tf-ans-_12398139_1" id="tf-ans-_12398139_1_1" value="true" > </td> <td><label for="tf-ans-_12398139_1_1">True</label></td> </tr> <tr> <td> <input type=radio name="tf-ans-_12398139_1" id="tf-ans-_12398139_1_2" value="false" > </td> <td><label for="tf-ans-_12398139_1_2">False</label></td> </tr> </table> </td> </tr> </table> I'm new to HTML, so take it easy on me. I have a form field that I want to remember the text that was put into it after the submit button is pressed......do i need to do that with cookie or is there a way to make a form field remmber the last inputed data?.....for clarity's sake i don't mean for it to remember the data when a user comes back to the page just while they are visiting it. Hi, Below is my line of input code where I pass a certain variable. What I want to know is - is it possible to leave that 'identifer' value out of the url string if a user does not enter anything in that field? It's for a hotel reservation system and if left blank, it causes an error. It works fine is a user enters a code though. Code: <input type="text" name="identifier" value="" style="width:70px; font-size:11px;" /> Any ideas? Thanks script completed, thx |