HTML - How To Use Html Form Data To Create A Url
Hi everyone I'm new to this forum and I have a question. I need to create an input form that asks users for a zip code. Once they type in their zip code and hit submit I need to take their zip code and put it in the URL. EX. if 12345 was typed, after they hit submit it would take them to "www.example.com/12345" Does this make sense?
Similar TutorialsPlease anybody will tell me, how a Form will create in HTML. Hello guys, Not sure if this is the right board to post this one, but I need some help. I'm trying to carry over a field of numbers from one form to another. However, with the code, only some of the numbers show up. It's easier if i post the code here. Code: post.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>post</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <script type="text/javascript"> //<![CDATA[ function checkSelect() { var df=document.forms[0][0]; if(df.options[df.selectedIndex].value=='') { alert('Please enter a valid phone number'); return false; } } //]]> </script> </head> <body> <form action="post1.htm" name="Phone" enctype="multipart/form-data" method="get" onsubmit="return checkSelect()"> <Input type=text value="Phone" name="" size="20"> <input type="submit" target="blank" value="Submit"/> </form> </body> </html> and the page that the numbers should carry over to: Code: post1.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>post1</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <script type="text/javascript"> <!-- function addInfo() { document.forms[0][0].value=parent.location.search.substr(6); } onload=addInfo; //--> </script> </head> <body> <form action="#"> <input type="text"/> </form> </body> </html> Can someone please tell me what I'm doing wrong? Cheers! Hello, Sam here. Hope we are doing great. The sole reason i joined this forum is to learn more about HTML < Obvious. I am working on a code which requires me to convert a static html form data feeded/recorded by a user to save to a excel file. i have seen many examples of this using jscript or vbscript. Can someone walk me through this. e.g. html form contains 2 feilds name and place and a submit button. when you click submit button i want the values in the feilds say f1 and f2 to be saved to excel rows. Again i make changes to name and place and hit submit i need the same file appended with the next set of values by user. i appreciate your help. please comment on all functions or calls which saves form data to excel. I am ok with html not this stuff. Regards, Sam I'm building a website in which user after logging in can upload videos, but I've no idea how to create a database that can store videos. I'm using PHP mySQL PLZ help So I've got a form with some input text. In addition to the data in the input text I want to send some other data that has already been predetermined on initial page load. How would I declare the other data within the form element? Thanks How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? Commercial Removals || Removals and Storage||Specialist Removals Hi everybody! I have a jsp page with a form and a table. My aim is that when i press the submit button of the form,collect the data and fill the table with it. I am working with J2EE. I have already collected the data in a Java class,but I dont know how to introduce this data into the table. Best Regards! I have been using my site for some time now and it carries the image name over when you clicked on purchasing the print. It carries it still, but when you submit the form, the image name isnt there and the form errors because the field is blank. Here is the site: www.sthompsonphoto.com I cant seem to figure out why it disappears when you click Submit? Any help would be great! "Home" appears on the button.When we click it it goes to "index.html" the image related to home button is home.jpg. So button's image is home.jpg ,after clicking the button it should take to a link we have given and button's name is Home.how to do that? thanks Hi everyone , my boss asked me to make our email address in our webpage and change it to a picture because of spammers. (cant copy and paste)Is there an easy way to do this because I am trying to create a gif in photoshop but it is not displaying exactly the same way that it looks now. At the bottom of www.meshoxford.com their is a link for email I want to to be an image file that looks just like the current page info@meshoxford.com Is there a way dreamweaver can make this easy? help me plzzz!!! Hi, This request is probably pretty simple for the savvy HTML developer, but I'm new and I can't figure it out. If anyone can help it would be greatly appreciated... I need to create a table that looks like the one in my attachment This is what I have so far... <table bordercolor="#6b6b6b" border="1" cellspacing="0"> <tbody> <tr><th rowspan="11"><a title="Clinical Practice Council" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Overview.aspx">Clinical Practice Council</a></th> <td><a title="Clinic Standards and Practice Council" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Clinic%20Nursing%20Standards%20and%20Practice%20Council.aspx">Clinic Standards and Practice Council</a></td> </tr> <tr> <td><a title="Falls Risk and Reduction Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Falls%20Risk%20and%20Reduction%20Committee.aspx">Falls Risk and Reduction Committee</a></td> </tr> <tr> <td><a title="ICE Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/ICE%20Committee.aspx">ICE Committee </a></td> </tr> <tr> <td><a title="Nursing Informatics Committee" href="/sites/Nursing/NursingInformatics/Site%20Pages/Nursing%20Informatics%20Committee.aspx">Nursing Informatics Committee</a></td> </tr> <tr> <td><a title="NIRT Committee" href="/sites/Nursing/NursingInformatics/Site%20Pages/NIRT%20Committee.aspx">NIRT Committee</a></td> </tr> <tr> <td><a title="Nursing Web Team Committee" href="/sites/Nursing/NursingInformatics/Site%20Pages/Nursing%20Web%20Team.aspx">Nursing Web Team Committee</a></td> </tr> <tr><td><a title="Nursing Pharmacy Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Nursing%20Pharmacy%20Committee.aspx">Nursing Pharmacy Committee</a></td></tr> <tr><td><a title="Nursing Product Evaluation Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Nursing%20Product%20Evaluation%20Committee.aspx">Nursing Product Evaluation Committee</a></td></tr> <tr><td><a title="Nursing Standards and Practice Council" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Nursing%20Standards%20and%20Practice%20Council.aspx">Nursing Standards and Practice Council</a></td></tr> <tr><td><a title="Patient and Family Education Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Patient%20and%20Family%20Education%20Committee.aspx">Patient and Family Education Committee</a> </td></tr> <tr><td><a title="Skin Integrity Committee" href="/sites/Nursing/Clinical%20Practice%20Council/Site%20Pages/Skin%20Integrity%20Committee.aspx">Skin Integrity Committee</a> </td></tr> <tr><th rowspan="3"><a title="Nursing Research Council" href="/sites/Nursing/Nursing%20Research%20Council/Site%20Pages/Overview.aspx">Nursing Research Council</a></th> <td><a title="Evidence-Based Practice Working Group" href="/sites/Nursing/Nursing%20Research%20Council/Site%20Pages/Evidence-Based%20Practice%20Working%20Group.aspx">Evidence-Based Practice Working Group</a></td></tr> <tr><td><a title="Research Education Working Group" href="/sites/Nursing/Nursing%20Research%20Council/Site%20Pages/Research%20Education%20Working%20Group.aspx">Research Education Working Group</a></td></tr> <tr><td><a title="Research Working Group" href="/sites/Nursing/Nursing%20Research%20Council/Site%20Pages/Research%20Working%20Group.aspx">Research Working Group</a></td></tr> <tr><th rowspan="1"><a title="Outcomes Management Council" href="/sites/Nursing/Outcomes%20Management/Site%20Pages/Overview.aspx">Outcomes Management Council</a></th> <td></td></tr> <tr><th rowspan="4"><a title="Professional Nursing Advancement Council" href="/sites/Nursing/Professional%20Development%20Council/Site%20Pages/Professional%20Nursing%20Advancement%20Council.aspx">Professional Nursing Advancement Council</a></th> <td><a title="Nursing Education Council" href="/sites/Nursing/Outcomes%20Management/Site%20Pages/Divisional.aspx">Nursing Education Council</a></td></tr> <tr><td><a title="Professional Nursing Advancement Council" href="/sites/Nursing/Professional%20Development%20Council/Site%20Pages/Professional%20Nursing%20Advancement%20Council.aspx">Professional Nursing Advancement Council</a></td></tr> <tr><td><a title="ROAR" href="/sites/Nursing/Professional%20Development%20Council/Site%20Pages/ROAR%20Council.aspx">R.O.A.R Council</a></td></tr></tbody></table> Thank you, Ninel here is what im trying to do $File = $subject.html; but all it is doing is adding what i type in as the subject and then it adds "html" to the end of it... so if the subject was "pizza" it would come out as "pizzahtml" instead of "pizza.html" what am i doing wrong? Would it be possible to create a web page that would generate simple job tickets by using radio buttons to choose directions from sets of criteria. This would run from a server, inside my company only, and would not be on the web. The idea is that after clicking on a radio button to choose an item in each of several categories, then clicking a submit button, a page (PDF?) would be produced which would be the actual job ticket. It could then be printed. Can anyone advise if this is doable? Thanks! Hi Experts, I need your help. I am very new to CSS. I want the table very similar to the attached snapshot. Two columns: Applications and Aspects (With around the same background color)) No horizontal seperation lines between the rows. and when I hover over a cell, the color should turn grey. I really appreciate your help in advance Can you save the pages you create from a .Master as HTML? Would you suggest a different format? It wants to save as aspx, but can't open that on my phone... My Base Code PIC: http://i282.photobucket.com/albums/k...g?t=1226432339 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I want the data in the "edit_box" & "combo_box" to be sent to my email, when the user clicks "Continue". =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= If you can give me the code that is an exact duplicate of the above image including the email code, I Would Really Appreciate It!!!!! i know how to create a web page i have done it already but i need to create a from and lots of options to choose from and submit stuff and how do i make it work? and what i have to do? thanks I have an ezine form (below). I want to allow people to select their newsletter. I have 3 newsletters: The financial professionals is number 230 and small business owner is number 229 and Washington residents is number 232 Can you help me fix the code so that people can select the newsletter they want? <div style="text-align: center"> <form class='subscription_form' id='subscription_form' method='post' action='http://www.autoresponder-service.com/formcapture.php?v=25&w=26'> First Name *<br /> <input type="text" name="first_name" size="26" /><br /> Last name *<br /> <input type='text' name='last_name' size="26" /><br /> Company Name *<br /> <input type='text' name='company' size="26" /><br /> Title *<br /> <input type='text' name='title' size="26" /><br /> Primary Phone *<br /> <input type='text' name='phone1' size="26" /><br /> Street *<br /> <input type="text" name="street" size="26" /><br /> City *<br /> <input type="text" name="city" size="26" /><br /> Zip *<br /> <input type="text" name="zip" size="26" /><br /> State or Province *<br /> <input type="text" name="state" size="26" /><br /> Country *<br /> <select name="country" style="width:185px;"> <option value=""> </option> <option value="United States">United States</option> <option value="Canada">Canada</option> <option value="United Kingdom">United Kingdom</option> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="Algeria">Algeria</option> <option value="American Samoa">American Samoa</option> <option value="Andorra">Andorra</option> <option value="Angola">Angola</option> <option value="Anguilla">Anguilla</option> <option value="Antartica">Antarctica</option> <option value="Antiqua">Antigua / Barbuda</option> <option value="Argentina">Argentina</option> <option value="Armenia">Armenia</option> <option value="Zimbabwe">Zimbabwe</option> <option value="Other">Other</option> </select><br /> How'd You Find Us? (optional)<br /> <input type="text" name="custom_referral" size="26" /><br /> Assets Under Management (optional)<br /> <input type="text" name="custom_aum" size="26" /><br /> Topic You'd Like To Know More About (optional)<br /> <input type="text" name="custom_topic" size="26" /><br /> Company Email Address*<br /> <input type="text" name="email" size="26" /><br /><br /> <input type="image" src="http://www.elevatingyourbusiness.com/images/button/FREEINSTANTACCESS.jpg" /> <input type='hidden' name='id' value='229' /> <input type='hidden' name='first_name_man' value='1' /> <input type='hidden' name='last_name_man' value='1' /> <input type='hidden' name='company_man' value='1' /> <input type='hidden' name='title_man' value='1' /> <input type='hidden' name='phone1_man' value='1' /> <input type='hidden' name='street_man' value='1' /> <input type='hidden' name='city_man' value='1' /> <input type='hidden' name='state_man' value='1' /> <input type='hidden' name='country_man' value='1' /> <input type='hidden' name='zip_man' value='1' /> </form> Hi there I have been trying to search on goolge but I couldnt find one I looking for. I would like to know how to make glitter image then insert it into html codes. Any suggestion? Your response will be highly appreciated Regards |