PHP Basics In Pictures
Pass form inputs to a script
  1. Create a new Web page with this code:

    <html>
    <head>
    <title></title>
    </head>

    <body>

    <form method="post" action="http://www.yourwebsite.com/phpscripts/formoutput.php">

    <h2>What is your name?</h2>

    <input type="text" name="yourname"><br>

    <input type="submit" value="Submit">

    </form>

    </body>
    </html>
  2. Save the page as simpleform.html in the PHPSCRIPTS folder.