turbocueca Posted March 25, 2006 Share Posted March 25, 2006 I'm learning to do php forms, and I'm testing in this page: [a href=\"http://infocenter.awardspace.com/submit.php\" target=\"_blank\"]http://infocenter.awardspace.com/submit.php[/a] , it should return the value written on the "Game Name" textbox when clicking OK but it doesn't.submit.php:[code]<td width="111"><strong>Game Name:* </strong></td> <td width="319"><form id="form3" name="form3" method="post" action=""> <label> </label> <input name="textfield3" type="text" size="53" maxlength="45" /> </form> </td>(...)<form id="form6" name="form6" method="post" action="insert.php"> <label></label> <div align="center"> <p> <input type="submit" name="Submit" value="OK" /> </p> <p><a href="index.php">Back</a></p> </div></form>[/code]insert.php:[code]<?php echo $_POST['textfield3']; ?>[/code] Link to comment https://forums.phpfreaks.com/topic/5815-my-submit-form-doesnt-work/ Share on other sites More sharing options...
azuka Posted March 26, 2006 Share Posted March 26, 2006 From your code, you have two different forms -- one with the textbox and the other with a submit button -- ie form3 and form6. You need to join them. Link to comment https://forums.phpfreaks.com/topic/5815-my-submit-form-doesnt-work/#findComment-20749 Share on other sites More sharing options...
shortj75 Posted March 26, 2006 Share Posted March 26, 2006 you have 2 forms with on submit try this [code]<td width="111"><strong>Game Name:* </strong></td> <td width="319"><form id="form3" name="form3" method="post" action="insert.php"> <label> </label> <input name="textfield3" type="text" size="53" maxlength="45" /> </form> </td>(...) <label></label> <div align="center"> <p> <input type="submit" name="Submit" value="OK" /> </p> <p><a href="index.php">Back</a></p> </div></form>[/code] Link to comment https://forums.phpfreaks.com/topic/5815-my-submit-form-doesnt-work/#findComment-20796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.