Hi Shyam,
Cookie example working fine. Their is one problem, you might be facing while copying source code of example. Usually when you copy the content, and paste in php file, it also get unnecessary space. For example, I copied whole code of cookie1.php, I got one line like <input type = "text" name = " username "> .In cookie1.php file we are getting value of $_POST['username'], but if you see the above code, here the name of element, php will consider as ' username '. So you always get value of $_POST['username'] empty. Try to remove those unnecessary space, then program will give expected result.
Oct 21, 2009