DAY 10 PHP PROGRAMMING

http://php.flashwebhost.com/ramesh/day-10/cookie_2.php

PHP Code:
<?php
if(isset($_COOKIE['userName'])) {
echo 
'<h2 style="color:blue">Hi ' $_COOKIE[userName] . '!, welcome back.</h2>';
exit;
}


if(isset(
$_POST['userName']) && strlen($_POST['userName']) > 3) {
setcookie('userName'$_POST['userName'], time() + 3600);
echo 
'<h3 style="color:green">You may close the browser and re-login, I will remember your Name. </h3>';
} else {

echo 
'
<html>
<body style="background-color:#000">
<form method="POST" action="">
<input type="text" name="userName">
<button type="submit">Click here</button>

</body>
</html>

'
;
}