Forms + PHP = BFF
Posted: February 20, 2009
One great way to use PHP is to use web forms to get data from visitors to your site. You’re all probably familiar with the standard HTML forms:
<form method=“post” action=“page.php”>
Please enter your name: <input type=“text” name=“username” />
<input type=“submit” value=“Send” />
</form>
See those extra attributes in the form tag, method and action? Those are how you can send things to a PHP script on another page.
