HTML - Multiple Forms On One Html Page
We're having difficulties dealing with two forms on one html search results page. We want the following to happen:
1) "next" and "previous" links to appear when the search returns more results than the limit set in the code. 2) the user to be able to click on a link/radio button which would allow them to view complete result data on another page. The code for goal 1 seems to need a "method = get" capability, while the second goal needs "method = post" to pass information on to the next page. We thought that the best way to do this would be to have two separate forms on the one html page. However, we can't seem to get either form to work in its entirety. Here's the code for our form with the "next" and "previous" links: Code: <form name = "form2" id="form2" method="get" action="<?php echo $_SERVER['PHP_SELF']?>"> When there is only this form on the page, the next/previous links work fine. It's when we try to incorporate other buttons (such as a submit button) and another form that things get messy. The same is true for the other form... it works fine by itself, but it's the combination that throws it off. Goal 2 form: Code: <form name = $formNum id = $formNum method=post action=seach_match_result.php target='_blank'> (This form has a submit button at the end.) These forms are not nested, but totally separated in the code. Are we on the right track, or is there a better way to accomplish this? Thanks! AM Similar TutorialsI'm new to forms and am trying to learn how to make a multiple page one. What I've made so far is very basic, but I figure I shouldn't make a pretty and complex one until I master the simple. I've made three separate pages: page a has the first part of the form and when you click 'continue' it should save the information and move you onto page b where you fill in another form. Then you move onto page c where the information you entered is displayed for you to review, then you press send. That's when it's sent to my e-mail. There are two problems with my code: when you click 'continue' on page A it automatically sends the info to my e-mail and I don't want it to. I want it to go to page b. It also displays the information entered on page a, but also shows a bunch of the code that should be hidden. I don't know why. And it's driving me nuts. I'd appreciate any help! Here's the code: <html> <head> <title>Sample Multiple Page Form</title> </head> <body bgcolor="white" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0> <form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST"> <input type="hidden" name="sendtoemail" value="contact@mywebsite.com"> <input type=hidden name="next_page" value="Multiple_Page_b"> <input type=hidden name="required" value="name:Name Required,email:e-Mail Address Required"> <input type=hidden name="current_page" value="Multiple_Page_a"> <input type=hidden name="form" value="2"> <input type=hidden name="start" value="1"> <center> <table width=450 cellpadding=4> <tr> <td colspan=2> <font size=2 face="arial" color=red> </td> </tr> <tr><td><font face="arial" size=2> Your Name: </td><td><input type=text name="name" value="" size=30> </td></tr> <tr><td><font face="arial" size=2> Email Address:</td><td><input type=text name="email" value="" size=30></td></tr> <tr><td colspan=2><br><input type="submit" name="next" value="Continue >>"></td></tr> </table> </form> </body> </html> And here's the message displayed when clicking continue: Thank you for completing our form. The following info was sent to contact@mywebsite.com: Field Value next_page Multiple_Page_b required name:Name Required,email:e-Mail Address Required current_page Multiple_Page_a form 2 start 1 name Jess email contact@myemail.com next Continue >> Hello all, Iam trying to use for loop / while loop (javascript) to create multi HTML input forms, but I have no idea how to do. Please help me out. Thank you! Daralis Hey guys and thanks in advanced for helpin' me out with this one. Anyways, I'm building a sort of "Advanced" search functionality. I want to give the user the ability to select multiple checkboxes in different categories (forms) but to be able to account for each checkbox even though they are in different forms. For example a Newspaper might have a search for an article by: Code: <FORM>(form name = "formONE") Paper Type Weekly [] Daily [x] Monthly [] {SUBMIT BUTTON} </ FORM> <FORM> (form name = "formTWO") Location Upper East [] Null County [] Down South [x] {SUBMIT BUTTON} </ FORM> <FORM> (form name = "formTHREE") Article Section Lifestyle [] Sports [x] Weather [] Finances [] {SUBMIT BUTTON} </ FORM> SO looking at the above...If the user "checked" (I placed 'x' in there) those boxes...and clicked ANY of the submit buttons, I want to be able to pull-in EACH of the checked items from ALL THREE of the forms. What is happening now with my code, is I'm only getting the results for the form which I clicked the 'submit' button in. I know you might ask, "why not just put them in one form?"... but I have them in separate forms because I want the user to have the ability to "CHECK/UNCHECK ALL" for each category (i.e. Paper Type, Location, Article Section...) Is it as easy as just wrapping all of those forms in one GIANT form, and supply each submit button with the name of that GIANT form? I hope this makes sense, and let me know if you need anything else at all...it's the last piece of this search and I just want to get it out of the waY!! Thanks guys! I have a loop that extracts data out of the database and outputs a dropdown form with each line with options for the user. I have included an onChange = "this.form.submit();" for each dropdown. This works fine in Firefox, but does not work so well in Internet Explorer(yes, scripting is enabled). Here's the code: <form method="post" action="some.php"> <input type = "hidden" name ="variable1" value ="'.$variable1.'"' /> <input type = "hidden" name ="variable2" value ="'.$variable2.'"' /> <select name = "'.$variable1.$variable2" onChange = "this.form.submit();"> <option value = "option_1"> Option 1</option> <option value = "option_2"> Option 2</option> <option value = "option_3"> Option 3</option> <option value = "option_4"> Option 4</option> </form> This code is then just echo'd for each line. $variable 1 and $variable2 are unique, so to name each form differently I just give combine the two for a unique name I can call at some.php. Symptoms: In Mozilla this works great. With IE(both 6 and 7) the variable1 and variable 2 are passed along, however option_1(the 1st default option displayed) is always passed along except for the last one of my list. The last one of the list always passes along the correct the correct value. So if I had two outputs A and B,and I selected Option2 for each of them...then A would send Option1 but B would send the selected Option2. Hey Guys, I am having an issue where the only logical way I can see this being done, is with nested forms, which I know aren't allowed, and are breaking my design in IE. Here's the concept: I have a gallery of images that a user is managing (like 12 images are displayed on each page). Each image has a checkbox associated with it that the user can check and then at the bottom of the page the user can move all checked images to another folder. Therefore, all images and their checkbox's, along with the "move to folder" selection menu and submit button at the bottom are contained into one big form. Now within this form I have the option for users to move individual images. Each image has a select menu of folders and submit button that they can use to move a individual image. This therefore requires another form, just for this select menu (since I only want the action to be applied to this specific image and it's select input, and all others also have the same select input name, etc) and a submit button. See this screenshot for example: http://imagenerd.com/show.php?_img=gallery69SR.jpg Here is a snippet of code I am using in this example: Code: <form action="" method="post"> <div class="box-row last-row"> <div class="box-full"> <div class="box-top"><div class="box-bot"><div class="box-left"><div class="box-right"><div class="box-top-left"><div class="box-top-right"><div class="box-bot-left"><div class="box-bot-right"> <div class="box-content"> <h1>Folder: dafasd</h1> <div class="box-content-pad"> <div class="gallery-block"> <span class="edit-title" id="_199" title="edit title"><i>click to add title</i></span> <div class="image-option-links"> <a href="javascript:void(0);" onclick="share_codes_popup('/view-codes/?filename=siege_of_stormwynd-AXAP0.jpg&thumbname=th_siege_of_stormwynd-AXAP0.jpg', 'title');" title="get share codes">share</a> | <a href="javascript:void(0);" title="move this image" class="move_image">move</a> | <a href="/my-gallery/?delete_image=199" title="delete this image" onclick="return confirm('Are you sure you want to delete this image, siege_of_stormwynd-AXAP0.jpg?')">delete</a> </div> <div class="move-image-options"> <form action="" method="post"> <select name="move_image_folder"> <option value="1">Root</option> <option value="12">dafasd</option> <option value="13">dafasd</option> <option value="14">dafasd</option> <option value="15">asdfasdf</option> <option value="16">asdfasdf</option> </select> <input type="hidden" name="move_image_id" value="199" /> <input type="submit" name="move_image" value="Go" onclick="return confirm('Are you sure you want move this image, siege_of_stormwynd-AXAP0.jpg?');" /> </form> </div> <div class="image-box"> <a href="http://www.new.imagenerd.com/show.php?_img=siege_of_stormwynd-AXAP0.jpg" title="View siege_of_stormwynd-AXAP0.jpg" target="_blank"><img src="/thumbnails/th_siege_of_stormwynd-AXAP0.jpg" alt="siege_of_stormwynd-AXAP0.jpg" width="175" height="35" /></a> </div> <div> <table width="100%" cellpadding="0" cellspacing="0" class="image-select"> <tr> <td width="20" align="left"> <input type="checkbox" name="image_cb[]" value="199" class="checkbox" id="img_199" title="select siege_of_stormwynd-AXAP0.jpg" /> </td> <td align="left"><label for="img_199" title="select siege_of_stormwynd-AXAP0.jpg">siege_of_stormwynd-AXAP0.jpg</label></td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="0" class="table-pad-2 table-align-td-left quick-select"> <tr> <td width="70"><b>Email/IM:</b></td> <td><input type="text" value="http://www.new.imagenerd.com/show.php?_img=siege_of_stormwynd-AXAP0.jpg" onclick="this.select()" /></td> </tr> <tr> <td><b>Forums:</b></td> <td><input type="text" value="" onclick="this.select()" /></td> </tr> <tr> <td><b>HTML:</b></td> <td><input type="text" value="<a href="http://www.new.imagenerd.com/show.ph...XAP0.jpg" target="_blank"><img src="http://www.new.imagenerd.com/thumbna...XAP0.jpg" alt="" border="0" width="175" height="35" /></a>" onclick="this.select()" /></td> </tr> <tr> <td colspan="2"><a href="/view-codes/?filename=siege_of_stormwynd-AXAP0.jpg&thumbname=th_siege_of_stormwynd-AXAP0.jpg" title="more share codes">more...</a></td> </tr> </table> </div> </div> . . (cut off other 2 gallery block divs due to forum character post restrictions) . <div class="clear"></div> </div> <div class="pager"> </div> </div> </div></div></div></div></div></div></div></div> </div> <div class="clear"></div> </div> <div class="box-row" style="margin: 12px 0px 0px 0px;"> <div class="box-full"> <div class="box-top"><div class="box-bot"><div class="box-left"><div class="box-right"><div class="box-top-left"><div class="box-top-right"><div class="box-bot-left"><div class="box-bot-right"> <div class="box-content align-center"> <p><b>With Selected Images:</b></p> <table cellpadding="0" cellspacing="0" align="center"> <tr> <td> <input type="checkbox" id="selectall" /> </td> <td width="120" align="left"> <label for="selectall">select/unselect all</label> </td> <td width="120"> <select name="action" id="action_select"> <option value="">----------</option> <option value="delete">Delete</option> <option value="move">Move to</option> </select> </td> <td width="120"> <select name="multi_folder" disabled="disabled" id="folder_select"> <option value="1">Root</option> <option value="12">dafasd</option> <option value="13">dafasd</option> <option value="14">dafasd</option> <option value="15">asdfasdf</option> <option value="16">asdfasdf</option> </select> </td> <td width="120"> <input type="submit" name="multi_action" value="Go" id="multi_go" disabled="disabled" onclick="return confirm('Are you sure you want to perform the selected action on all of the selected images?')" /> </td> </tr> </table> </div> </div></div></div></div></div></div></div></div> </div> <div class="clear"></div> </div> </form> Red - Associates with multi image options Blue - Associates with single image move option Any suggestions on how I can achieve this? Thanks, Kyle For years I have done things the same old way and they have worked fine, now I want to move a site over to xhtml from html4 and I am having problems get some code validated via W3C validator. Here is a sample of the code. It has 3 forms on the page. Each form is for a particular product in the shopping cart. ie, each form is for a unique product and it comprises a hidden text field containing the product_code (eg AAA3) and a submit button. When the chosen form is submitted I just pick up the POSTed data from the product_code variable ($_POST['product_code']) in php. This works fine for last few years but under the w3C validator it complains that the id is not unique for the product_code Quote: ID "product_code" already defined How can I get round this without having individual "product_code" ID's eg (id="product_code1" id="product_code2") as this would make life very complicated trying to workout what product_code was submitted. HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> Here is Product - 1 <form id="form1" method="post" action=""> <p> <input type="hidden" id="product_code" value="AAA1" /> </p> <p> <label> <input type="submit" id="submit" value="Submit" /> </label> </p> </form> Here is Product - 2 <form id="form2" method="post" action=""> <p> <input type="hidden" id="product_code" value="AAA2" /> </p> <p> <label> <input type="submit" id="submit" value="Submit" /> </label> </p> </form> Here is Product - 3 <form id="form3" method="post" action=""> <p> <input type="hidden" id="product_code" value="AAA3" /> </p> <p> <label> <input type="submit" id="submit" value="Submit" /> </label> </p> </form> </body> </html> I am using the following code to submit two forms at the same time - Code: <body onLoad="document.forms[0].submit();document.forms[1].submit();"> <form action="form1.php" method="post" target="_self"> <input type="hidden" name="value1" value="value1"> </form> <form action="form2.php" method="post" target="_blank"> <input type="hidden" name="value2" value="value2"> </form> </body> This does work and the current page goes to the first form's action, but the second form is opened in a new window. This is caused by the target="_blank" but if I don't include this, only the first form is sent. Is there any way I can make the second form run but not follow it (ie make it run in the 'background') or suppress the new window from opening? These two forms have to be separate and use POST, not GET. I only want to follow the first form. (That brings up another question - is it possible to not follow a form at all?) Thanks! Hey everyone, I'm working on a new login form for my site and getting a HUGE headache from it. The login box houses 2 forms but I do some trickery with jQuery for the password field so that I can display the word "Password" in a text input, and then I swap it to a password type input field when the user focuses on it. - The form for logging in contains: Email field [type=text] Fake Password field [type=text] Actual Password field[type=pass] - Another to create a new account contains: Screename [type=text] Email[type=text] Password field[type=pass] Testing in FireFox, I clear the saved passwords/cache from the site, pull up the forms and submit the LOGIN form. It's successful and I choose to "Remember the password". Now I logout and pull up the forms again...and the SIGN UP form's password field, now contains the value I entered in the LOGIN form when I saved earlier. Does it simply look for all password fields on the page and add the value to them? The forms both have different ID's all the input fields have different ID's... I've never dealt with forms on this magnitude, so it may be easy, but man is it a headache! THANKS FOR ANY HELP! Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma Hey all, I have two forms on my page (shown below in order of appearance). The 2nd form works and redirects you to the page "change-password.php" as it should, but the 1st form does NOT work correctly - it redirects to "change-password.php" too. I don't know what I'm doing wrong, the form action clearly states "uploadconfig.php" but it still tries to send the information to "change-password.php" instead. Thanks in advance. Code: <form action="uploadconfig.php" method="post" enctype="multipart/form-data" name="frm_upload" id="frm_upload"> <table border="0" cellspacing="0" cellpadding="0" id="tbl_upload"> <tr> <th align="right" scope="row"><span class="style8"> <label for="frmname">Song Title: </label> </span></th> <td><input type="text" name="frmname" id="frmname" class="frmfld" /></td> </tr> <tr> <th align="right" scope="row"><span class="style8"> <label for="price">Price: </label> </span></th> <td><input type="text" name="price" id="price" class="price" /> (i.e. - $20)</td> </tr> <tr> <th align="right" scope="row"><span class="style8"> <label for="frmfile"> File: </label> </span></th> <td><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" /><input name="frmfile" type="file" id="frmfile" size="30" /></td> </tr> <tr> <th scope="row"> </th> <td> <label for="btn" id="sbm"> <input type="submit" name="btn" id="btn" value="Upload" /> </label> </td> </tr> </table> </form> Code: <form action='change-password.php' method=post><input type=hidden name=todo value=change-password><table border='1' bordercolor="#FF0000" cellspacing='0' cellpadding='0' align=center> <tr bgcolor='#CCCCCC' ><td colspan='2' align='center'><font face='Calibri' size='3' align='center'><b>Change Your Password</b> </font></td> </tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>Username</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='text' class='bginput' name='username' ></font></td></tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>New Password</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='password' class='bginput' name='newpassword' ></font></td></tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>Confirm Password</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='password' class='bginput' name='confirmnewpassword' ></font></td></tr> <tr bgcolor='#f1f1f1' ><td colspan=2 align=center><input type=submit value='Change Password'> <input type=reset value=Reset></font></td></tr></table></form> 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! 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 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. 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 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 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! 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 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 |