Hi,
I'm hoping that this can be done.
I have a form, and upon clicking the submit button it calls another
PHP script to save the data in a MySQL database. Of course since it
is a FORM, all the variables are available to the save script. Once
the data has been saved, I change the location and go to a summary
page so the customer can see the verification and such.
The problem is when I go from the save script to the confirmation
script, all the variables are lost. The save script is a reusable
script that several scripts use.
I have a couple of questions. Instead of calling the save script and
then going to another page, if I make it an include function, will
that prevent the loss of variables?
If not, is there another way to do this, since the save script is
nothing more than PHP code, with no forms or data input....
Thanks for everyone's help.
John
I'm hoping that this can be done.
I have a form, and upon clicking the submit button it calls another
PHP script to save the data in a MySQL database. Of course since it
is a FORM, all the variables are available to the save script. Once
the data has been saved, I change the location and go to a summary
page so the customer can see the verification and such.
The problem is when I go from the save script to the confirmation
script, all the variables are lost. The save script is a reusable
script that several scripts use.
I have a couple of questions. Instead of calling the save script and
then going to another page, if I make it an include function, will
that prevent the loss of variables?
If not, is there another way to do this, since the save script is
nothing more than PHP code, with no forms or data input....
Thanks for everyone's help.
John
Comment