Shaun Demellweek wrote:
Just a quick question, wondering if someone could answer it for me.
How can you pass variables that users complete in a form to the next page
without them being passed through the address bar?
If i understand you correctly, just use the POST method for the form
<form action="processform.php" method="post">
<!-- ________________________^^^^^^^^^^^^^ -->
User variable: <input type="text" name="uservar" />
<input type="submit" />
</form>
and in processform.php you can access the uservar in the _POST array
<?php
if (isset($_POST['uservar']) && $_POST['uservar'] != 'OK') {
exit('Please type "OK" (without the quotes)');
}
?>
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.