helpchrisplz
asked on
puting echo into a variable
learning php :)
this is probably really easy to do but am stuck and running out of coffee
i currently have this block of code :
if ($name==$dbusername&&$pass word==$dbp assword)
{
$_SESSION['UserName']=$nam e;
if ($_SESSION['UserName'])
echo "Welcome to the scapp gaming network, ".$_SESSION['UserName'];
}
else
echo "password incorrect!";
}
i would like to position my echos on the page. it currently outputs the echo to the top of the page
and moves the navigation down
how can i echo this where i want it?
thx
this is probably really easy to do but am stuck and running out of coffee
i currently have this block of code :
if ($name==$dbusername&&$pass
{
$_SESSION['UserName']=$nam
if ($_SESSION['UserName'])
echo "Welcome to the scapp gaming network, ".$_SESSION['UserName'];
}
else
echo "password incorrect!";
}
i would like to position my echos on the page. it currently outputs the echo to the top of the page
and moves the navigation down
how can i echo this where i want it?
thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if (!empty($_SESSION['UserNam