Right, I'm submitting a series of values from a form via the post method. Is there a way that I can add an extra variable and value into the list from the onclick() method of the submit button?
Basically, I've got a hidden input that's set at the current page's ID so that when the user selects options the PHP reloads the page in various states.
However, when the user clicks "submit", I wish this value to point to the next page, not the current one.
I appreciate that I could get a hold of the hidden input and change the value, but I'd like to do it (for simplicity) another way...
Basically, I've got a hidden input that's set at the current page's ID so that when the user selects options the PHP reloads the page in various states.
However, when the user clicks "submit", I wish this value to point to the next page, not the current one.
I appreciate that I could get a hold of the hidden input and change the value, but I'd like to do it (for simplicity) another way...