Php includes the htmlspe-cialchars function
|
|
---|
<form action=”post.php” method=”post”>
Enter your name: <input type=”text” name=”yourname” /><br /> <input type=”submit” />
</form>When the user submits the form, the value of the yourname field will be available in $_POST and $_REQUEST. You could return it to the user like this:
Processing Forms | 637 |
---|
|
---|
Handling Parameters with Multiple Values
Most form fields are easy to deal with; they’re simple name and value pairs. If you have a text field or radio button group, for example, you can access the value submitted using $_REQUEST, like this:
21 |
---|