Browser Does NOT Support Cookies
- If your application deals with browsers that do not support cookies, you will have to use other methods to pass information from one page to another in your application. One method is to pass the data through forms (forms and user input are described earlier in this tutorial).\
- The form below passes the user input to “welcome.php” when the user clicks on the “Submit” button:
<form action=”welcome.php” method=”post”> Name: <input type=”text” name=”name” />
Age: <input type=”text” name=”age” />
<input type=”submit” />
- Retrieve the values in the “welcome.php” file like this:
Welcome <?php echo $_POST[“name”]; ?>.<br /> You are <?php echo $_POST[“age”]; ?> years old.