>
> I have two submit-type buttons in my form. How can I distinguish on the
> serverside which one is pressed?
>
The easiest way would be to just check if either is set...
if (!empty($_POST[SUBMIT1NAME])) {
//SUBMIT1 SET
} elseif (!empty($_POST[SUBMIT1NAME])) {
//SUBMIT2 SET
}
I don't knw about in Zend_Form if you're using that though. You can also
access the POST vars through the request object in your actions.
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context: http://www.nabble.com/Multiple-submit-tp19275860p19276057.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论