Home >> PHP - MySQL Programming with PHP 2.1 [Page 2] Article by: Shelton Manage Tuesday, 26th May, 2009
Handling an HTML Form
Now that have an HTML form, I'll write a PHP script to handle it. there is a box in HTML form whose attribute is email, then PHP will store the text enterd ther in a variable call $maill. So handle_form.php in this example can make use of variables named $name, $email, $gender, $age, $comments and $submit.
Ex: echo "thank you, $name for the following comments:...........handle_form.php is - Like this.
Ex: handle_form.phps | handle_form.php
If you are seeing result without variables values, there is no enabled globle settings.
Registeing Globals
In earlier version of PHP the register_global setting was turn on default. As of version 4.2 off it default. Then you can use superglobal variables, such as $_GET and $_POST, If the result it an error, you can use the isset() function.
Page: First - 1 2 3 4 5 6 7 8 9 10 - Last
|
|