After running my code I got this message..:
Parse error: parse error, unexpected T_VARIABLE in /home/dobakat/public_html/Istariguild/phptests/member.php on line 104
And line 104 is...:
$Pass = $_POST['Pass']
What does 'unexpected T_VARIABLE ' mean?
Does that line have something wrong?
Well I thought you might need a bt more of code so here it is:
<?php
session_start();
$User= $POST['User']
$Pass = $POST['Pass']
if ($User && $Pass)
{
try
{
login($User, $Pass)
$_SESSION['valid_user']=$User
}
catch(Excption $e)
{
do_html_header('Problem');
echo 'You could not be logged in. You must be logged in to view this page.';
do_html_url('login.php','Login');
do_hmtl_footer();
exit;
}
}
do_html_header('Home');
check_valid_user();
display_user_menu();
do_html_footer();
?>
All the functions are explain before this code, which include:
'function login($User, $Pass)'
'function do_html_footer()'
'function do_html_URL($url, $name)'
'function do_html_header($title)'
'function display_user_menu()'
'function check_valid_user()'
Well if you see any other mistakes apart for the 'unexpected T_VARIABLE ' at 'line 104', please correct me, I am only a bigginer...