Hi all,
I think this will be a simple problem.
Script below checks for session, if found, I want it to display a text box with the email address in.
I have called the db and that all works, I can diaply it to the screen and that works, but I cannot display the email address in the text box like I want to!
How do I do it, I am getting all sorts of error messages, mainly relating around using the <html> tag in my script.
Friday afternoon, and I need to get this finished, all help appreciated..
Here's the script...
<?
session_start();
if (!session_is_registered("SESSION"))
{
header("Location: /error.php");
exit();
}
$user=$HTTP_SESSION_VARS['SESSION_UNAME'];
$connection=mysql_connect('localhost','root');
mysql_select_db('reseller');
$userdata=mysql_fetch_assoc(mysql_query("select * from user where user ='$user'"));
$email=$userdata['email'];
<html>
<body>
First Name: <input type="text" name="first" value=($email)><br>
</body>
</html>
?>
Thanks