Skip navigation
Currently Being Moderated

Pass inserted record to another page

Mar 13, 2012 6:32 AM

Tags: #php #insert #record

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points