Hi
I'm writing an script to clone the features of sites like hotornot.com and rankpeople.com. I am having trouble setting cookies for numbers.
I have a form where you input the Maximum age, and minimum age. here is the html coding for the maximum form.
<code>
<form action="cookieset.php" method="get">Max age<input type="hidden" name="name" value="maxage"><input type="text" maxlength="3" size=3 name="value"><input type="submit" value="Go"></form>
</code>
Here is the code for cookieset.php:
<code>
<?
setcookie($name, $value) or die("could not set/reset cookies");
?>
<head>
<meta http-equiv="refresh" content="0; URL=<?=$HTTP_REFERER ?>">
<title> Cookie Updater </title>
</head>
</code>
Can anybody suggest why this won't work, or am I making a stupid mistake?