How to pass form fields value to another form on other page using session

Permalink 1 user found helpful
I am trying to pass input fields value though session variable with the following code.

<?php
if (isset($_POST['Submit'])) {
$_SESSION['test'] = $_POST['Question12'];
}
?>

where "Question12" is the name of an input type text field and I am trying to save the value of this field into session variable "test" after clicking submit button.

But the problem is that it is not working with c5. If I use !isset instead, it create session variable and save the value.

Please help me to solve this out.

Shashikesh

View Replies: