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 Quote 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. Quote 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 Quote 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? Quote 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> Quote 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. Quote 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.. Quote 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? Quote 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> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.