Jump to content

Archived

This topic is now archived and is closed to further replies.

ceanth

Passing information over two pages

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.