Matrix
03-11-2003, 10:35 AM
Hi All - it's an odd title, I know ... let me explain:
I have a page ("order.php") with a form that POSTs a whole bunch of values to a PHP page ("page1.php"), which works fine.
BUT I now want to be able to click a button from within the form on order.php, display a different page ("page2.php") and set the value of a variable in that page.
I know that might look like a php question, but I'm pretty sure this part can be done with JS ... I'm just not sure if I can open the new page first and then set a hidden variable in that page.
Does anyone have a little workaround for this? Or am I looking at the problem from the wrong side?
My only other thought was to try a form within a form, use PHP and POST the "inner form" to the new page taking the variable value to the new page, but I've never heard of this and don't know what impacts it might have.
[if it helps to explain ... i've got a product order form that posts to a confirmation and payment page; I now have products in the order form that are a special order and need to be quoted on. So there is a new "special order inquiry" page/form on which I want to display the name of the item being inquired on. SO - all i want to do is set a variable in the new page from within the order page. Make sense? I hope so!]
Any suggestions would be appreciated!
Cheers guys,
Matrix.
I have a page ("order.php") with a form that POSTs a whole bunch of values to a PHP page ("page1.php"), which works fine.
BUT I now want to be able to click a button from within the form on order.php, display a different page ("page2.php") and set the value of a variable in that page.
I know that might look like a php question, but I'm pretty sure this part can be done with JS ... I'm just not sure if I can open the new page first and then set a hidden variable in that page.
Does anyone have a little workaround for this? Or am I looking at the problem from the wrong side?
My only other thought was to try a form within a form, use PHP and POST the "inner form" to the new page taking the variable value to the new page, but I've never heard of this and don't know what impacts it might have.
[if it helps to explain ... i've got a product order form that posts to a confirmation and payment page; I now have products in the order form that are a special order and need to be quoted on. So there is a new "special order inquiry" page/form on which I want to display the name of the item being inquired on. SO - all i want to do is set a variable in the new page from within the order page. Make sense? I hope so!]
Any suggestions would be appreciated!
Cheers guys,
Matrix.