My experience with dynamic web applications is very new so, as always any assistance will be greatly appreciated
I want to conduct an interview with a user by having them fill in details over several pages on mysite.com. They do not have to fill in the interview pages in any particular order.
So that the details are entered into the correct record in the database I understand that a session must be set up when the user starts. I want this to start at the page a new user is directed to from an account activation e-mail.
Once the user comes to this opening page he/she would have 10 different pages that they could go to (they don't have to do the interview in order any) and I want the information that they entered on the last visit to appear in the form field (if anything is there)
This is the beginning of the page the e-mail directs the user to
Essentially my question is how do I start a session on th epage opened by an activation e-mail?
After reading various sources I considered that session_register() might be the answer but seeing that it is depricated indicates to me that there is either a better way or, it is just plain wrong.
Any help is appreciated.
Thanks
I want to conduct an interview with a user by having them fill in details over several pages on mysite.com. They do not have to fill in the interview pages in any particular order.
So that the details are entered into the correct record in the database I understand that a session must be set up when the user starts. I want this to start at the page a new user is directed to from an account activation e-mail.
Once the user comes to this opening page he/she would have 10 different pages that they could go to (they don't have to do the interview in order any) and I want the information that they entered on the last visit to appear in the form field (if anything is there)
This is the beginning of the page the e-mail directs the user to
Code:
<?php require_once('../Connections/connConn.php'); ?>
<?php
// Load the tNG classes
require_once('../includes/tng/tNG.inc.php');
//Start log out user
$logout = new tNG_Logout();
$logout->setLogoutType("link");
$logout->setPageRedirect("/index.html");
$logout->Execute();
//End log out user
mysql_select_db($database_connBSD, $connBSD);
$query_rsUsers = "SELECT * FROM users";
$rsUsers = mysql_query($query_rsUsers, $connBSD) or die(mysql_error());
$row_rsUsers = mysql_fetch_assoc($rsUsers);
$totalRows_rsUsers = mysql_num_rows($rsUsers);
?>
Essentially my question is how do I start a session on th epage opened by an activation e-mail?
After reading various sources I considered that session_register() might be the answer but seeing that it is depricated indicates to me that there is either a better way or, it is just plain wrong.
Any help is appreciated.
Thanks