PHP

Cookies

<?php
   if (!isset($_COOKIE['Ordering'])) {
      setcookie("Ordering", $_POST['ChangeOrdering'], time() + 31536000);
   }
?>

<form method="POST" action="mbprefs.php"> Reorder messages:
<select name="ChangeOrdering">
<option value="DateAdded ASC">Oldest first
<option value="DateAdded DESC">Newest first
<option value="Title ASC">By Title, A-Z
<option value="Title DESC">By Title, Z-A
</select>
<input type="submit" value=" Save Settings ">
</form>

José M. Vidal .

30 of 33