Jump to content

Passing information over two pages


ceanth

Recommended Posts

Hi all, i have a form which collects information (page 1), i then want users to confirm information on the form (page 2) then finally add it to a database (page 3).

If i use:

<?php echo "Firstname: ".$_POST['cfname']; ?>

then it gets displayed on the second page but the third page cannot see it. Does anyone know how i can store this information so it gets passed into the other pages?
Link to comment
Share on other sites

Search these forums because this has been asked before.

But real quick, here are your best choices:

use hidden fields (only if the data is not sensitive)
use cookies (only if the data is not sensitive)
sessions (best option all the way around especially if you have sensitive info.)


Check out various tutorials for each of those options.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.