J
JS
I have a series of pages which make up a questionnaire. It's all done
in PHP and I'd like to have two submit buttons (well, images really) so
that one submits the form and takes them to the next page, the other
submits the form and takes them to the previous page.
The redirect value is set using PHP so I'd like some Javascript to set
that variable, then submit the form so that I can accomplish this
requirement.
Is this possible? I know Javascript can submit a form, and also can
send a variable to a PHP script, but I'm not sure how to do this
combination.
Thanks in advance.
Jon
in PHP and I'd like to have two submit buttons (well, images really) so
that one submits the form and takes them to the next page, the other
submits the form and takes them to the previous page.
The redirect value is set using PHP so I'd like some Javascript to set
that variable, then submit the form so that I can accomplish this
requirement.
Is this possible? I know Javascript can submit a form, and also can
send a variable to a PHP script, but I'm not sure how to do this
combination.
Thanks in advance.
Jon