bcamp1973 Posted March 22, 2007 Share Posted March 22, 2007 ok, here's my form <form action="<? echo $_SERVER['PHP_SELF'] ?>" method="post"> <ul> <li>Item #1 <input type="image" name="delete" value="16" src="assets/img/clear.gif" /></li> <li>Item #2 <input type="image" name="delete" value="7" src="assets/img/clear.gif" /></li> <li>Item #3 <input type="image" name="delete" value="1" src="assets/img/clear.gif" /></li> </ul> </form> and at the head of the page is my script <? if($_POST['delete']) { mysql_query('DELETE FROM recipes WHERE id='.$_POST['delete']); } ?> this works in a couple other browsers i've tested...but not in Micro$lop Internet Exploder...i've been staring at it for too long. any suggestions? Link to comment https://forums.phpfreaks.com/topic/43900-form-wont-submitin-ie/ Share on other sites More sharing options...
per1os Posted March 22, 2007 Share Posted March 22, 2007 could be the fact you have multiple inputs with the same name. Link to comment https://forums.phpfreaks.com/topic/43900-form-wont-submitin-ie/#findComment-213096 Share on other sites More sharing options...
Scriptor Posted March 22, 2007 Share Posted March 22, 2007 Yea, just try giving them different names. Link to comment https://forums.phpfreaks.com/topic/43900-form-wont-submitin-ie/#findComment-213102 Share on other sites More sharing options...
bcamp1973 Posted March 22, 2007 Author Share Posted March 22, 2007 I realize the answer to this is so simple i'm going to feel mildly retarded...but, how do i process it in the script? This list is built dynamically... Link to comment https://forums.phpfreaks.com/topic/43900-form-wont-submitin-ie/#findComment-213106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.