here is the html for a page called checkclass.html:
<html>
<body>
<form action="checkclass.php" method="POST">
Enter the SLN: <input type="text" name="sln" /><BR>
Enter the year: <input type="text" name="year" /><BR>
Enter the quarter: <input type="text" name="quarter" /><BR><BR>
<input type="submit" /><BR><BR>
</form>
</body>
</html>
and the relevant code from checkclass.php
Code: Select all
<?php
$theray = array($_POST["quarter"], $_POST["sln"], $_POST["year"]);
if (!setcookie("cooky", $theray)) /*, time()+36000))*/
echo "failed to set cookie";
?>