HTML - Passing Data Between Html Forms
Hi Everyone
I have a problem with my form in that I have an html page with a dropdown list. I need the value selected to be passed to another html file. However I need this done with html and not javascript/css/asp etc. As an e.g. of what I have: <form name="connect" action="trace.php" method="get"> <select name="sites"> <option selected option value="http://www/connect.php">Choose A Site</option> <option value="http://10.20.12.50" name="Site1">Site1</option> <option value="http://10.20.12.55" name="Site2">Site2</option> <option value=http://10.20.12.40" name="Site3">Site3</option> </select> <br><br> <input type="Submit" value="Traceroute"> </form> So if the user selects site2 I need the name (or value) from the option field sent to trace.php and from the trace.php website i need to retrieve the value selected from the above. Can someone please help me by telling me how to do this? At the moment I cannot retrieve the value from the trace.php site. I have used $_POST & $_GET, but neither seem to work and I am not sure what I am doing wrong. TIA Similar TutorialsHi all, i'm new to xml but i was wondering if the following is possible: I have a html document with some tabs. And when i click on a tab it opens a xml document. In the xml document is a link to xsl sheet with a variable and i want to change that variable with the value of the link in html document. Does some one nows how? html link: <a href="#t1" target= "t1" title="[link title]">11</a> <div class="sliderkit-news" id=t1><iframe name="t1" width="100%" height="800" src=wo.xml></iframe> xml variable <xsl:variable name= "line" select="'11'"/> The number 11 should come form the a href in the html doc. Also the following is possible fill the variable with a drop down menu: <xsl:variable name= "line"> <select> <option value="'11'">11</option> <option value="'12'">12</option> <option value="'13'">13</option> </select> </xsl:variable> I want to fill the variable with a drop down selection. and then use the variable in the document. What i do is opening the xml en then it generates a display based on the xsl sheet. i hope some one can help me. Ok, this sounds extremely easy but I'm more of a designer and less of a coder. I'll try and explain what I want to accomplish. I spent the better part of the afternoon yesterday searching for a solution. Alas, I need some assistance! We have a page where users can view a report in a PDF format from a drop down. Also on that page we need to have a place where they can select an option from a drop down and email the PDF to them. Now, we have the link set up. I can take a sample link, add my email address to the end of it, hit enter and it shoots me an email. The question is how can I take what the user inputs into a form and pass it into a URL. All that needs to happen is to send the user to that URL and have the URL be correct. At that point the email gets sent automatically. My best attempt so far gets me to the URL but things like &, =, etc are replaced by %3D and %26. The URL won't work that way. I'll post that code: Code: <FORM METHOD="LINK" ACTION="https://fusion.bennettware.com:4443/drivers/getfueltaxreport?"> <select name="unitfuel"> <option selected>Select Month</option> <option value="year=09&month=01&reportName=UnitTax">January 2009 </option> <option value="year=09&month=02&reportName=UnitTax">February 2009</option> </select> Type in your email address: <INPUT TYPE="text" NAME="&email="> <INPUT TYPE="submit" VALUE="Send email"> </FORM> Here is what I get in the URL: (sorry had to place it in html tags because the link was only half showing up.) HTML Code: https://fusion.bennettware.com:4443/drivers/getfueltaxreport?unitfuel=year%3D09%26month%3D01%26reportName%3DUnitTax&%26email%3D=test@testmail.com Also, notice that "unitfuel" gets appended to the URL as well. It gets passed into the URL and that will likely cause the report to fail. The URL needs to look like this: HTML Code: https://fusion.bennettware.com:4443/drivers/getfueltaxreport?year=09&month=01&reportName=UnitTax&email=myemail@mydomain.com If a user were logged in and ran that link, a page would appear stating that an email had been sent. So, all I need it for the input to get placed into the URL without all of the additional characters. The report cannot run when the URL looks like the above and thus cannot get emailed. Also, that link probably won't work since the site is password protected, so you'll likely get a 'page cannot be displayed' error if you try to access it. Solution is likely simple, then again, my luck would have it not being so simple! I thank you all in advance for your help. At least a point in the right direction would be nice. Hi This is my first post so trust I don't breach any protocols. I'm creating a form that will send data from the form to an email. I have done this many times before with no problem but suddenly it is failing to do so. The main form has approx24 data fields so in case this was a problem, created a simple form with 2 text fields and a submit button but this wouldn't work either. My default Editor is dreamweaver MX and outlook as my email. Not being sure if it is my code, editor or email system causing the problem I have tried all variations using Dreamweaver MX, Dreamweaver CS3, Frontpage and in desperation Pagebreeze with Outlook, Outlook Express and Mozilla Thunderbird. I'm pulling my hair out. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="mailto:My Email address" method="post" name="form1"> <p> <input type="text" name="textfield"> </p> <p> <input type="text" name="textfield2"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> </body> </html> Has anyone had the same problem and solved it ? Hi, i am studying in 10th grade in India. My computer science teacher has asked me and my classmates to design a website in html using forms and CSS. I have created one with help of frontpage 2003. It contains a user registeration form. I just want to give my teacher a surprise by saving the data entered in forms to a file on the computer. Please give the codings to do so. Also, when the user enters the username and pasword, he should be welcomed by his name. I have attached my file. Please help me. Hi I am currently trying to create a form which has one textbox, two radio buttons and a submit button and when the submit button is selected it will open another page and show the text from the text box and also show which radio button was selected. Currently i have two web pages, Forms.html which will have the textbox, radio buttons and submit button. Then i ahve page.html which i want to show the results. Currently the code in the forms.html page is: Code: <form action="page.html" method="post"> <fieldset> <legend>Testing form</legend> <p><label for="name">Name</label> <input type="text" id="name" /></p> <p><label for="male">Male</label> <input type="radio" value="male" id="male" name="gender" /></p> <p><label for="male">Female</label> <input type="radio" value="female" id="Female" name="gender" /></p> <p class="submit"><input type="submit" value="Submit" /></p><br/> </fieldset> </form> On the page.html the code i have is: Code: <% 'declare the variables that will receive the values Dim text, male, female 'receive the values sent from the form and assign them to variables 'note that request.form("name") will receive the value entered 'into the textfield called name name=Request.Form("text") email=Request.Form("male") comment=Request.Form("female") 'let's now print out the received values in the browser Response.Write("text: " & text & "<br>") Response.Write("male: " & male & "<br>") Response.Write("female: " & female & "<br>") %> However when you select the submit button it does open page.html but it does not show the results. Does anyone know why this is? Have i written the code wrong? Thanks Jeskit Hello....long time viewer of this site....love it....learnt so much I have a question.... I used emailmeform.com to create my form for my site, but wanted to use my server instead of theirs.......Can't find a way around in the code I have a feeling this is what I need to change: "http://www.emailmeform.com/fid.php?formid=119926" How do I cut them out of the picture so that the form is submitted straight to my email? Here it is as it stands: <form method="post" action="http://www.emailmeform.com/fid.php?formid=119926" enctype="multipart/form-data" accept-charset="UTF-8"> <table width="659" border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="480"> <p><font face="Verdana" size="2" color="#000000">Please help the site remain free and fill out the survey.</font></p> <p><font color="#000000" size="2" face="Verdana">Universal password for all eBooks will be emailed to you immediatley</font></p> <p class="style14"><font color="#000000" face="Verdana">*please read our <a href="TOS.html" title="TOS">terms of service</a> before submitting the survey</font></p> <div style="" id="mainmsg"> </div> </td> </tr> </table> <br> <table cellpadding="2" cellspacing="0" border="0" bgcolor="#FFFFFF"> <tr valign="top"> <td width="170" nowrap><font face="Verdana" size="2" color="#000000"><br /> Your Name</font><br /> <br /></td> <td width="351"> <br /> <input type="text" name="FieldData0" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Your Email Address<br /> <br /> </font></td> <td> <br /> <input type="text" name="FieldData1" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Phone Number<br /> <br /> </font></td> <td> <br /> <input type="text" name="FieldData2" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Interested In<br /> <br /> </font></td> <td><br /> <input type=checkbox name="FieldData3-0" value="Shares" id="check30"><font face="Verdana" size="2" color="#000000"><label for="check30">Shares</label></font><br><input type=checkbox name="FieldData3-1" value="Options" id="check31"><font face="Verdana" size="2" color="#000000"><label for="check31">Options</label></font><br><input type=checkbox name="FieldData3-2" value="CFDs" id="check32"><font face="Verdana" size="2" color="#000000"><label for="check32">CFDs</label></font><br><input type=checkbox name="FieldData3-3" value="Futures" id="check33"><font face="Verdana" size="2" color="#000000"><label for="check33">Futures</label></font><br><input type=checkbox name="FieldData3-4" value="FX" id="check34"><font face="Verdana" size="2" color="#000000"><label for="check34">FX</label></font><br><input type=checkbox name="FieldData3-5" value="Other" id="check35"><font face="Verdana" size="2" color="#000000"><label for="check35">Other</label></font><br> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Amount availiable to invest<br /> </font></td> <td> <br /> <input type=radio name="FieldData4" value="$0-$10k" id="radio40"><font face="Verdana" size="2" color="#000000"><label for="radio40">$0-$10k</label></font><br><input type=radio name="FieldData4" value="$10k-$25k" id="radio41"><font face="Verdana" size="2" color="#000000"><label for="radio41">$10k-$25k</label></font><br><input type=radio name="FieldData4" value="$25k-$50k" id="radio42"><font face="Verdana" size="2" color="#000000"><label for="radio42">$25k-$50k</label></font><br><input type=radio name="FieldData4" value="$50k-$200k" id="radio43"><font face="Verdana" size="2" color="#000000"><label for="radio43">$50k-$200k</label></font><br><input type=radio name="FieldData4" value="$200k+" id="radio44"><font face="Verdana" size="2" color="#000000"><label for="radio44">$200k+</label></font><br /> <br> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Currently trading through<br /> </font></td> <td> <br /> <input type="text" name="FieldData5" value="" maxlength="100" size="30"> <span class="style15">*optional</span></td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Experience<br /> </font></td> <td> <br /> <input type=radio name="FieldData6" value="Beginner" id="radio60"><font face="Verdana" size="2" color="#000000"><label for="radio60">Beginner</label></font><br><input type=radio name="FieldData6" value="Intermediate" id="radio61"><font face="Verdana" size="2" color="#000000"><label for="radio61">Intermediate</label></font><br><input type=radio name="FieldData6" value="Advanced" id="radio62"><font face="Verdana" size="2" color="#000000"><label for="radio62">Advanced</label></font><br> </td> </tr> <tr> <td colspan="2"></td> </tr> <tr> <td> </td> <td align="right"> <input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none;"> <br /> <input type="submit" class="btn" value="Submit" name="Submit" /></td> </tr> <tr> <td colspan=2 align="center"> <br></td> </tr> </table> </form> Thanks so much! I'm trying to change a paypal form code I want to set up 4 radio buttons(payment plans). Each of the buttons I'd like to change the value part of this line <input type="hidden" name="amount" value="1.00"> into different amounts(chosen by me) how might i go about doing this? What are html forms, can any one explain aabout html forms. i just want to use htm forms to connect two web pages. just post the code it would more helpful for me. I am totally new to web development. I have a project in which i have to make a form. It is not a simple form with only 2-3 input areas but a series of 3-4 pages to be filled by person to enter into database. I need a good software to design a form. pls suggest me one?? i tried front page but it is bull****. also i want to know that in my form I wantr that if user clicks a radio button then a part of form glows up and then user can fill out that options.(I mean to say that by clicking a particular radio button event ) thanks in advance Almon I'm trying to make an e-mail form on a website using HTML that will send the information to me without opening up Microsoft Outlook. The only problem is the web host I'm using doesn't support PHP. Any ideas how this can be done? (I think this is in the right section, if not, I apologize!) hi i have a form that i want to send to emails the form ask for password , user name and secret question , the thing is that i only know html and nothing about cgi scripts so what i did was that i search in google for cgi scripts so i found many but now i dont know what to do do i have to have one page for the form like form.htm and another for the cgi script like form.php or form.asp ? both of this files have to go into my server who host my page ? can you please help me to solve this thank you . rocko I have a series of questions related to forms via html. 1. I am creating an employment application form. The form is pretty long, and I would like to create a "next" button that would bring the applicant to the next section, however I don't want it to submit because I would like to keep the application together in one piece (I might not be able to tell what piece belongs to which applicant, etc.). 2. The dreaded "SUBMIT" button... I've tried all the tutorials on the web that I can find, but I'm not sure I know exactly what's going on. Excuse me, but I am a little bit slow. A thorough explanation of how to create a mailto: myemail@mywebsite.com would be awesome. I don't know how to make it work. I put the "mailto" script in my forms, but nothing happens when I click submit. I will be posting the custom HTML to my form once it is complete so you can copy/paste however you'd like. To contact me directly, just go to: www.happypetpaws.net and click on my "Live Support" button. I'll answer. Thank you for your help! For my Web application, the user inputs RNA sequences. The user may input as many as he/she wishes, so I need to provide the option to input how many sequences will be submitted. That number of text boxes/input boxes need to be generated. For instance, if the user enters 4, four text boxes will be generated so the user can input four sequences. Is there a way to do this solely with HTML? Please help! My form is finished and I am trying to set up a thank you page that the advertiser gets when they submit a form. I am still learning and I am looking for a simple HTML code that can give me that. Much information is appreciated. Hi guys, i wonder if there is anyone out there that can help me with something. I have tried to fix it but to no avail. I cannot see any issues with the HTML, especially within the form tag. The form was produced by a company for me, with a script so that it emails the information to an end user. The problem is this: When you try to click on the text field the cursor doesnt come up unless u move to the top of the box. This only occurs on the first four os so fields, then the rest are perfect. As a workround, i have set the value to some text, and when the user clicks on it it clears the form and this works fine, but if the user clicks away from the form, and hovers over the text box the same problem exists. The URL is www.ventureaircraftbrokering.com the form is on the main page. I have tried to compare the code but nothing i can see. Thanks to all concerned in advance. Bpjones I need a form where when you click "Submit" it does not open Outlook. Instead, I want it to email the information to be, but redirect them to a confirmation that the information has been sent. How do I do this? Thank you! i got assigned a task of creating a satifaction survey for the it department. i need help with this. is there any type of step by step guide out there. or better yet would anyone out there be able to create the form for me so i can insert into a web page? thanks! I am trying to make an HTML form with each field having an up and a down button next to it. There will be a total of 32 fields in a 4 by 8 table. The fields will be numerical starting with a value of 0. Then you can add or subtract 1 by pushing the corresponding button. I have figured out how to make the individule field using this code: <form> <input type=text name=amount value=5> <input type=button value="up" onClick="javascript:this.form.amount.value++;"> <input type=button value="down" onClick="javascript:this.form.amount.value--;"> </form> I can do this 32 times inside each cell of the table. But obviously I cannot submit this type of form do to the fact that you would end up with a <form> tag inside of a <form> tag. Is there any way around this? So that I can have the fields with their up and down buttons and then in the end be able to press the submit button and have it send the results in a text document to an email address using a php formmail script. |