Jump to content

[SOLVED] Submit button IE 7 and Firefox inconpatibility


Adam W

Recommended Posts

I am generating a form with this code

 

<form name = \"analysis\" method= \"post\" action=\"$_SERVER[php_SELF]\">

 

and a Submit button with this code

 

<TD><input type=\"submit\" name=\"submit\" value=\"Run Analysis\"></TD>";

 

It works fine when I view the resultant HTML page in Firefox, when you clickm the button the page does exactly what I think it should do.

 

However in IE7 whyen the button is pressed nothing happens - have I missed some thing awfully obvious?

 

:-\

 

Adam

Can you post the rest of the code that generates the form. Sometime IE can be very picky when it comes to incorrect HTML.

 

Also, look at the generated HTML for obvious errors. Run it through a validator.

 

Ken

The rest of the code is here

 

<form name = \"analysis\" method= \"post\" action=\"$_SERVER[php_SELF]\">

<h1 ALIGN=\"CENTER\">$header Interactive Flight Analysis Details</h1>
<TABLE BORDER=\"0\">
<TR><TH WIDTH=\"300\" ALIGN=\"right\"><p><strong>Select the Pilot:</strong></TH>
<TD><select name=\"Pilot_id\">
<option value=\"\">All or Select One</option>
";
while ($recs=mysql_fetch_array($result)) {
$id = $recs['Pilot_id'];
$display_name = $recs['Pilot_Name'];
if ($id == $Pilot_id){
$display_block .= "<option value=\"$id\" selected=\"selected\">$display_name</option>
";
}else{
$display_block .= "<option value=\"$id\">$display_name</option>
";
}
}
$display_block .="
</select></TD>
<input type=\"hidden\" name=\"op\" value=\"save\">
<TH ALIGN=\"right\"><p><strong>Analysis Start Date: </strong></TH> 
<TD><TABLE><tr>";	
	$display_block .= dropList($StartDate,"Day","S",1,32); 	
	$display_block .= dropList($StartDate,"Month","S",1,13);
	$display_block .= dropList($StartDate,"Year","S",2006,2017);
	$display_block .= "</tr><tr>
</table>
</TD><TR><td> </td><td> </td>
<TH ALIGN=\"right\"><p><strong>Analysis End Date: </strong></TH> 	 
<TD><TABLE><tr>";	
	$display_block .=dropList($EndDate,"Day","E",1,32);	
	$display_block .= dropList($EndDate,"Month","E",1,13);
	$display_block .= dropList($EndDate,"Year","E",2006,2017);
	$display_block .= "</tr>
	</table>
</TD>
<input type = \"hidden\" name=\"op\" value=\"add\">	
<TR><TH colspan=2 ALIGN=\"center\"> </TH><td> </td>
<TD><input type=\"submit\" name=\"submit\" value=\"Run Analysis\"></TD>";
   $display_block .= "</TABLE>
</FORM>";

 

And I'll run the souce code through a validator

 

Adam

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.