Jump to content

the submit button is not responding


fekaduw

Recommended Posts

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

<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>

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.