grk101 Posted July 17, 2009 Share Posted July 17, 2009 Okay, i tried search this form, and have provide a screen shot to show that i keep getting errors when searching.. anyway this is what i want to do... fill out form (html ) goes to a confirmation page and then the data is submitted. so i started with something small. HTML FORM PAGE <form id="form1" name="form1" method="post" action="confirm.php"> Name: <label> <input type="text" name="name" /> </label> <p> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> </p> </form> Confirm page: <form id="form1" name="form1" method="post" action="submit.php"> Name: <label> <input type="hidden" name="name" value="<? echo $_POST['name']?>" </label> <p> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> </p> </form> When hit submit on the htmlform so i can see verify the data, i get nothing, an empty name saying : NAME: am i doing something wrong? will the values on the cofirm.php than pass to the submit.php? [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
pengu Posted July 17, 2009 Share Posted July 17, 2009 hey mate, you forgot a ";" i'd recommend going to http://w3schools.com/php/default.asp - got a lot of great information on the website <input type="hidden" name="name" value="<?php echo $_POST['name']; ?>" <form id="form1" name="form1" method="post" action="submit.php"> Name: <label> <input type="hidden" name="name" value="<?php echo $_POST['name']; ?>" </label> <p> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> </p> </form> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.