Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Zend Framework - Which button was that?

    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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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
    Code:
    if(isset($_POST['submit1'])) // in case of method="post"
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    eeijlar (07-24-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •