Body: <p>As in my previous question, I've added (through an extension) a new Submit button "Save and add Contribution" to the Contact form.
  Now, in postProces hook, when this button has been pressed, I want to redirect to the "new contribution" form.
  At the moment I can not understand which submit button was pressed.
  Thanks for any suggestion.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-15T15:06:37.937Z
Comments.Text: I think this provides a pretty decent answer: http://stackoverflow.com/questions/2680160/how-can-i-tell-which-button-was-clicked-in-a-php-form-submit
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-16T05:52:42.773Z
Comments.Text: How do you create a button. Can you post some code ?
Comments.UserDisplayName: jitendra - fuzion
Tags: <contacts><extension>
Title: Contact form: determine which submit button was used
ThreadText: # Contact form: determine which submit button was used
  
  (Asked by: username_0 on 2016-09-15)
  
  As in my previous question, I've added (through an extension) a new Submit button "Save and add Contribution" to the Contact form.
  Now, in postProces hook, when this button has been pressed, I want to redirect to the "new contribution" form.
  At the moment I can not understand which submit button was pressed.
  Thanks for any suggestion.
  
  **Tags:** contacts, extension
  
  > **Comments:**
  > **username_1**: I think this provides a pretty decent answer: http://stackoverflow.com/questions/2680160/how-can-i-tell-which-button-was-clicked-in-a-php-form-submit  
  > **username_2**: How do you create a button. Can you post some code ?  
  
  ---
  
  ## 0 answers
  
  