Posted by Mitis on 10/15/06 12:59
hi all
I have something like this:
<form name="f" action="script2.php" method="post">
<input type="checkbox" .......................>
<input type="checkbox" .......................>
</form>
form can be submitted in 2 ways, for editing or deleting, so I do this:
<button type="submit" name="action" value="edit">edit</button>
<button type="submit" name="action" value="delete">delete</button>
<button> is inside <form></form> of course
no I press "edit" and in script2.php I do this:
echo $_POST['action'];
now I get:
Firefox: "edit"
IE6: "delete"
WTF is this ? is this an IE error ? How to create such functionality, one
form, same data 2 possible actions...
[Back to original message]
|