hi,
for some reason when ever I use:
index2.php?username=jedi58
or similar, instead of making the variable $username equal to 'jedi58', it instead complains that username doesn't exist.
any suggestions on what might cause this or how to fix it?
how are you checking for username on index2.php ?? reg kevin
since the function is being used to determine if user is logged in and show the appropriate layer I used:
function checkUser() { if($username=="") {
I have also tried changing the $username to $user and adding a $user = $username outside the function.
the function is called from within the body so that layer tags will appear inside the body.
You should use $_GET['username'] instead.
This is especially so since within your function $username is not global unless declared such.
Any chance we can see some code ?
Makes it easier to answer you...
thanks, it's working now. it was fixed using the $_GET method
odd that none of my other pages needed that