Use PHP Variables between pages: Session, URL, or Get
Hi,
For our association, I have developed a registration page. The registration pages insert a record into a mysql database, using php. After the user submits the form (using $post), I would like to be redirected to the confirmation page where a query of the mysql database is executed to retrieve the record the member just added.
To pass the variable, I have developed the following pages using a session variable.
Registration page : http://www.aosweb.org/member_dues.php
Confirmation page: http://www.aosweb.org/member_view.php
Although I have applied some recent changes to the code, it did work at one time. The forum was helpful getting the information I needed. At this point, the redirect and passing of the session variable is not working. It appears the session variable available on the member_view page is from the previous record inserted. Thus, the query executed on member_view does not return a result.
I have checked some of forum posts, such as:
- php url parameters
- how to pass form parameters to the confirm page ....
- php registration page help!
My outstanding questions are as follows:
1. Have I placed the command to set the $_session('sv_mem_num') at the correct location.
2. Should I consider another method such as passing a URL parameter or using the Get method.
Thanks.
George
