Quantcast
Channel: Adobe Community : All Content - PHP Application Development (read only)
Viewing all articles
Browse latest Browse all 107

Pass inserted record to another page

$
0
0

I have a registration form that uses Insert Record to add it to my database.

 

After pressing Insert record, I want it to go to another page where it displays that same data (along with a UserID that is generated by the database).

 

I cannot figure out how to do this. I tried saving the LastName, etc. to session variables and then looking up the record based on those variables, but I can't even get one of the session variables to display on a test page.

 

How can I store this data to session variables when I hit Insert Record?

 

For instance, I tried inserting this code on the Registration page:

 

$_SESSION['sessLastName'] = $_POST['LASTNAME'];

 

But when I drag sessLastName onto the following page and then run it, nothing shows up. (And yes, I have a Session Start command on both pages)

 

I have been able to send session variables to a following page when using User Authentication behaviors, but I cannot seem to get it to work when using an Insert Record form.

 

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>