fekaduw Posted July 1, 2007 Share Posted July 1, 2007 in a given page i have three forms. i want each form to take me to a different page when the user clicks on the submit buttons provided (i have three submit buttons). The first two submit buttons work fine but the third one didn't. how can i correct it. Here goes the code. I want the submit button of the first form to appear after the first two.... <html> <body> <table width="559" border="2" bordercolor="#D6E7F8" cellpadding="1" cellspacing="1"> <tr> <td width="559" valign="top"> <form name="form1" method="post" action="test1.php"> <input type="text" name="companyname" size="60"> </form> </td> </tr> <tr> <td valign="top"> <form name="form2" action="test2.php" method="post" enctype="multipart/form-data"> <input type="file" name="photo" size="60"> <input type="submit" name="Submit2" value="Test 2"> </form> <form name="form3" action="test3.php" method="post" enctype="multipart/form-data"> <input type="file" name="logo" size="60"> <input type="submit" name="Submit1" value="Test 3"> </form> </td> </tr> <tr> <td valign="top"> <input type="submit" value="Test 1"> </td> </tr> </table> </body> </html> i need ur help! thanks Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/ Share on other sites More sharing options...
AndyB Posted July 1, 2007 Share Posted July 1, 2007 There is no 'submit' input type for form1. Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287260 Share on other sites More sharing options...
MadTechie Posted July 1, 2007 Share Posted July 1, 2007 AND <td valign="top"> <input type="submit" value="Test 1"> </td> is outside the form block Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287261 Share on other sites More sharing options...
fekaduw Posted July 1, 2007 Author Share Posted July 1, 2007 my assumption is the last submit button in the td part to be used for the first form. is that possible. how do u correct these tags, then? Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287264 Share on other sites More sharing options...
MadTechie Posted July 1, 2007 Share Posted July 1, 2007 <html> <body> <table width="559" border="2" bordercolor="#D6E7F8" cellpadding="1" cellspacing="1"> <tr> <td width="559" valign="top"> <form name="form1" method="post" action="test1.php"> <input type="text" name="companyname" size="60"> <input type="submit" value="Test 1"> </form> </td> </tr> <tr> <td valign="top"> <form name="form2" action="test2.php" method="post" enctype="multipart/form-data"> <input type="file" name="photo" size="60"> <input type="submit" name="Submit2" value="Test 2"> </form> <form name="form3" action="test3.php" method="post" enctype="multipart/form-data"> <input type="file" name="logo" size="60"> <input type="submit" name="Submit1" value="Test 3"> </form> </td> </tr> </table> </body> </html> Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287266 Share on other sites More sharing options...
fekaduw Posted July 1, 2007 Author Share Posted July 1, 2007 thanks but i just want the submit button of the first form to be displayed at the bottom of the page. Just below the two submit buttons. Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287271 Share on other sites More sharing options...
MadTechie Posted July 1, 2007 Share Posted July 1, 2007 you could do it with CSS etc but this is more of a HTML issule.. i dont really know why you are using 3 forms! AND having the button for the top one at the bottom..! personally having a form in a form cause problems.. Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287284 Share on other sites More sharing options...
fekaduw Posted July 1, 2007 Author Share Posted July 1, 2007 well the two forms in the middle are used to attach a photo and a logo respectively (they will return back after uploading it) and finally i want the last submit button to move the data to the database. is there any simple way u could suggest? Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287288 Share on other sites More sharing options...
MadTechie Posted July 1, 2007 Share Posted July 1, 2007 have the hold thing in one form.. <html> <body> <form name="form2" action="test1.php" method="post" enctype="multipart/form-data"> <table width="559" border="2" bordercolor="#D6E7F8" cellpadding="1" cellspacing="1"> <tr> <td width="559" valign="top"> <input type="text" name="companyname" size="60"> </td> </tr> <tr> <td valign="top"> <input type="file" name="photo" size="60"> <input type="submit" name="Submit2" value="Test 2"> </td> </tr> <tr> <td valign="top"> <input type="file" name="logo" size="60"> <input type="submit" name="Submit1" value="Test 3"> </td> </tr> <tr> <td valign="top" align="center"> <input type="submit" value="Test 1"> </td> </tr> </table> </form> </body> </html> Link to comment https://forums.phpfreaks.com/topic/57962-the-submit-button-is-not-responding/#findComment-287292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.