Originally Posted by Spaceman3750
Let's try a little bit of troubleshooting here...
At the beginning of the second function (the login checking one), insert the following code:
Code:
//Let's see if the session vars were stored
echo "Name: $_SESSION[name], Pass: $_SESSION[pass]";
exit();
Note that the script will stop execution at exit(), I just want to know if the session vars were recorded and sent properly.
Did that, first it gave me
Notice: Undefined index: name in
/sites/herejezus-sites/www.ge64.nl/alpha/func.php on line
17
Notice: Undefined index: pass in
/sites/herejezus-sites/www.ge64.nl/alpha/func.php on line
17
Name: , Pass:
but then I noticed it should be:
Code:
//Let's see if the session vars were stored
echo "Name: $_SESSION['name'], Pass: $_SESSION['pass']";
exit();
But then it gives me
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/sites/herejezus-sites/www.ge64.nl/alpha/func.php on line
17
So I make it
Code:
//Let's see if the session vars were stored
echo "Name: " . $_SESSION['name'] . ", Pass: " . $_SESSION['pass'];
exit();
But then it does
Notice: Undefined index: name in
/sites/herejezus-sites/www.ge64.nl/alpha/func.php on line
17
Notice: Undefined index: pass in
/sites/herejezus-sites/www.ge64.nl/alpha/func.php on line
17
Name: , Pass:
again :S