using custom form buttons doesn't seem to work in f3.1

skyrun

Active Member
i have 2 custom buttons (added via custom template) on http://www.skyrun.com/skyforce/test/leads/form/3/

on f2.1, i could see if the form was submitted via one of these buttons by looking at $_REQUEST[buttonname] (or tried $_POST or ['buttonname']) in php validation scripts and if they were set to TRUE, that was the button pressed. but in f3.1, these variables are not set.

i think it's an HTML-standard thing that the variable gets set, so i suspect the form is being submitted via some other technique (js?) which is bypassing the setting of these variables. and if so, how can i tell what button is pressed?

tried with 'save on enter' being yes and no. same issue.
 
OK I've altered things so that upon submit a hidden element is created with the buttons name and value, which you can then access in a custom PHP script as you would any other post variable
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top