I,ve tried many online resources but can'n figure out how to start a session(). Any Help??
Here is what I got so far:
<?php
session_start();
/We'll set this variable later./
$new_string;
/register the session variable. /
session_register('new_string');
/random string generator./
/The seed for the random number/
srand((double)microtime()*1000000);
/Runs the string through the md5 function/
$string = md5(rand(0,9999));
/creates the new string. /
$new_string = substr($string, 17, 5);
$first_name = $_POST['new_string'];
session_register('first_name');
$_SESSION['first_name'] = $first_name;
?>
Thanks, airric