...

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



eeijlar
07-24-2008, 10:55 AM
Hi,

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?

thanks
/jlar

abduraooft
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"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum