Here's what the relevant lines in this page do:

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

    When the button on the form is clicked, the script formoutput.php will execute.

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

    This puts a textbox called yourname on the page.

  • sub getFormData {

    Defines getFormData as a user function, then starts it.