Hi everybody,
I am a new guy in PHP, earlier i used to program with asp, i could not find the solution to the problem my my cookies...its working fine on my machine (IIS) but fails on the clients web server...
can u please help me, please do....
here is the sample code...
-----------------this is setval.php
<?php
session_start();
echo $cmdlogin ;
if ($cmdlogin == "click me")
{
setcookie("uname", "logged in");
//header ("location: getval.php");
echo "test ";
echo "ulog :".$uname;
}
?>
<html>
<body>
<form name='frmlog' method='post' action='setval.php'>
<input type='submit' name='cmdlogin' value='click me'>
</form>
</body>
</html>
----------------- this is getval.php
<?php
echo "user name : ".$uname;
?>
please help me out...
thanks everybody...............
Santyk