Learning PHP and MySQL

Example 13-1 Creating a cookie

<?php
//remember  that  setcookie  must  come  before  any  other  line  that  generates  output setcookie("username","michele");
echo  'Cookie  created.';
?>

Posted by on 09/25 at 11:20 AM

Next entry: Example 13-2 Viewing the username cookie

Previous entry: Example 12-12 Displaying the authors in a list

<< Back to main