Note, uEmail and uId are COOKIEs from validate.php the echo works here
Login.php
<?php
if (isset($_COOKIE["uEmail"])){
$UserId= $_COOKIE["uId"];
$_SESSION['UserId']=$UserId;
echo "Welcome " . $_COOKIE["uEmail"] . $_SESSION['UserId']. "!<br />";
}else{
echo "Please Login!<br />";}
?>
Neworder.php
I can't echo the $_SESSION['UserId' here:
<form action="" method="post" name="fromOrderlist">
<b></b>
<p>
<label for="userId2">User ID:</label><? echo $_SESSION['UserId'];?>
<label for="customer_name2"><br>
...
please help
This post has been edited by Dormilich: 24 April 2012 - 07:26 AM
Reason for edit:: please use [code] [/code] tags when posting code

New Topic/Question
Reply



MultiQuote






|