This is a discussion on Passing Varialbes within the PHP General forums, part of the PHP Programming Forums category; Hi, This one has me stumped. We have a PHP page which contains 2 forms. The second form, named DETAIL, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
This one has me stumped. We have a PHP page which contains 2 forms. The second form, named DETAIL, has 2 HTML buttons on the bottom. These are not standard SUBMIT buttons. That is the way they want it. Anyhow, the buttons, labeled EDIT & DELETE both call the same script to perform the needed action. In addition, there is a javascript function 'VALIDATE' called prior to the form submission. We can easily just code an ONCLICK to submit the form with an onsubit to call the VALIDATE function. however, this is what they want: The want each button to call the same script to perform the action. They do not want to pass any variables via the URL, AND still call the VALIDATE function. Can this be done? I've at this more than 3 hours. I cannot code a hidden field, because I will not know which button they press....... Can anyone help??? Thanks!! John |