Forum Moderators: coopster
I need the the admin to be able to check over what has been updated but cannot work out how to display the the data witout updating the databse
anyone any idea's?
<?
session_start();
//to assign session vars
$_SESSION['name'] = $_POST['name'];
$_SESSION['phone'] = $_POST['phone']
//dont forget to clean your vars
?>
//to retrieve in any other page
<?
session_start();
echo $_SESSION['name'];
echo $_SESSION['phone'];
?>
also u can assign arrays and stuff to session variables.
you'll probably have 4 scripts in total
-the first one displays the initial form
-the second validates data, prints error or accepts data and assigns them to session vars, provide a "next" button to the "preview page"
-the preview page, gets the validated data that user entered, which we stored in sessions,
-processes variables stored in sessions, insert in db, email, etc. also you might want to clean up sessions afterwards