View Full Version : Zend Framework - Which button was that?

07-24-2008, 10:55 AM

I have two submit buttons on a web page and I need to know which one of them was clicked. They are both type='submit' buttons and both have the value='Select'..

I am using the Zend Framework. Does anyone know of any Zend methods that can do this? Or any way of doing it?


07-24-2008, 11:00 AM
Give two different names for them, say name="submit1" and name="submit2". Only one of them will get passed on submitting the page and you could check them like

if(isset($_POST['submit1'])) // in case of method="post"