Posted by fiziwig on 11/18/58 11:43
When the selected name is being processed:
session_start(); // send session_id cookie to user
$_SESSION['username'] = $uname;
At the top of any file that needs to know:
if(isset($_SESSION['username'])) {
$uname=$_SESSION['username'];
}
In the selection box:
echo '<SELECT NAME="....>';
echo '<OPTION..blahblah..';
if ($thisname==$uname) echo 'SELECTED';
echo '>'.$blahblah.$'</OPTION>';
--gary
Navigation:
[Reply to this message]
|