hello frnd plz help me out ..i created this php form as index.php
<?php
if(isset($_POST['username']))
{
$username1=$_POST['username'];
setcookie('clientname',$username1);
// $password=$_POST['userpass'];
// setcookie('clientpass','$userpass');
}
// $u=$_POST['username'];
// echo $u;
?>
<html>
<head>
<title>login</title>
</head>
<body>
<div>
<form method="post" action="cookie.php">
<label for="name">Name</label>
<input id="name" type="text" name="username">
<label for="pass">Pass</label>
<input id="pass" type="password" name="userpass">
<input type="submit" name="submit" value="submit">
</form>
</div>
</body>
</html>

and another page for displaying the username throw cookie page cookie.php
<?php

if(isset($_COOKIE['clientname']))
{
echo $_COOKIE['clientname'];
}

?>

And the problem is that i am nt getting anything . A blank page pops-up not able to solve y its happening plz help me out where i am mistaking