You are here: Witam « All PHP « IT news, forums, messages
Witam

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...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация