Hi.
I have two forms with the following names and properties:
1. register.php --- ----- action="register-exec.php" --- method="POST"
2. register-exec.php --- action="register-exec.php" --- method="POST"
After submitting the register.php, I used session in register-exec.php to store the value of the register.php for later use as follow:
session_start();
$_SESSION['bookTitle'] = $_POST['txtBookTitle'];
$_SESSION['bookInfo'] = $_POST['txtBookInfo'];
Then after submitting the register-exec.php, I wanted to use those session variables, as follow:
if( isset($_POST['register-exec']) ){
echo $bookTitle;
echo $_SESSION['bookTitle'];
}
None of them work?
what is wrong ???