Adam W Posted March 4, 2007 Share Posted March 4, 2007 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 Link to comment https://forums.phpfreaks.com/topic/41116-solved-submit-button-ie-7-and-firefox-inconpatibility/ Share on other sites More sharing options...
kenrbnsn Posted March 4, 2007 Share Posted March 4, 2007 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 Link to comment https://forums.phpfreaks.com/topic/41116-solved-submit-button-ie-7-and-firefox-inconpatibility/#findComment-199151 Share on other sites More sharing options...
Adam W Posted March 4, 2007 Author Share Posted March 4, 2007 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 Link to comment https://forums.phpfreaks.com/topic/41116-solved-submit-button-ie-7-and-firefox-inconpatibility/#findComment-199154 Share on other sites More sharing options...
Adam W Posted March 4, 2007 Author Share Posted March 4, 2007 Sorted it thanks very much it was a stray semi-colon in the HTML much further up the page! : Link to comment https://forums.phpfreaks.com/topic/41116-solved-submit-button-ie-7-and-firefox-inconpatibility/#findComment-199161 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.