Adam W Posted December 26, 2006 Share Posted December 26, 2006 I have been using a form which allows a user to select a row of data with a radio button and then to action the selection by clicking a Submit Button.The Form method = POST and the action = the name of the php fileThe php checks a variable set by the radio button and this determines the action to take.It works in IE6 and Firefox but not in IE7 and as the action is server side I can not really see how or why the Browser would interect with it. Anyone got any ideas?Thanks Link to comment https://forums.phpfreaks.com/topic/31888-solved-form-operation-in-firefox-ie6-works-but-ie7-does-not/ Share on other sites More sharing options...
AV1611 Posted December 26, 2006 Share Posted December 26, 2006 It would help to see some code... Link to comment https://forums.phpfreaks.com/topic/31888-solved-form-operation-in-firefox-ie6-works-but-ie7-does-not/#findComment-147980 Share on other sites More sharing options...
Adam W Posted December 26, 2006 Author Share Posted December 26, 2006 OK Php starts with[code]<?phpinclude 'config.php';include 'Masthead.php';echo $Masthead;echo "<form method=\"POST\" action=\"results.php\">";include 'OpenDb.php';if ($del) {[/code]I then go on to process the deletion of the record.The Radio button is generated by [code]echo "<input type=\"radio\" value=\"$row[Pilot_Name],$row[received]\" name=\"delete\"></td></tr>";[/code]which is called by looping throught the results of a MySql QueryAnd the action button is produced by this simple line of HTML[code]<input type="submit" name="del" value="Delete Event"><br></form>[/code]All of which seems to be simple and straight forward but I can not get it to work! ::) Link to comment https://forums.phpfreaks.com/topic/31888-solved-form-operation-in-firefox-ie6-works-but-ie7-does-not/#findComment-147986 Share on other sites More sharing options...
AndyB Posted December 26, 2006 Share Posted December 26, 2006 Sounds more like an html problem than server-side. Check the generated html source code for the form to see how it looks, especially whether attributes are enclosed in quotes or not. Link to comment https://forums.phpfreaks.com/topic/31888-solved-form-operation-in-firefox-ie6-works-but-ie7-does-not/#findComment-147993 Share on other sites More sharing options...
Adam W Posted December 26, 2006 Author Share Posted December 26, 2006 Thanks - it was an HTML error - an additional semi-colon where it should not have been! Link to comment https://forums.phpfreaks.com/topic/31888-solved-form-operation-in-firefox-ie6-works-but-ie7-does-not/#findComment-148044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.