Variables From External Sources

When a form is submitted to a PHP script, the information from that form is automatically made available to the script. There are many ways to access this information, for example:


Example #1 A simple HTML form


<form action="foo.php" method="post">
Name: <input type="text" name="username" /><br />
Email: <input type="text" name="email" /><br />
<input type="submit" name="submit" value="Submit me!" />
</form>



Depending on your particular setup and personal preferences, there are many ways to access data from your…

Leer artículo completo →