How to start it

  • Once again, this is similar to JavaScript.  Here's what you do to make it work:
  • As in JavaScript, whatever you name the individual INPUT tags is what you will use to refer to them.
  • Example:

  • <FORM NAME="dataForm" METHOD="POST" ACTION="parsedata.pl" onSubmit="validate()">
    Your first name:
    <INPUT TYPE="TEXT" NAME="firstName">
    <INPUT TYPE="SUBMIT">
    </FORM>
  • Where:
  • dataForm is the form name,
  • POST is the method,
  • parsedata.pl is the Perl script that will be executed when the user submits the form, and
  • validate() is a JavaScript script that is called when the user attempts to submit the form.
  • Use the tags we discussed in JavaScript.  Additionally, to store data from one form to another, you can use <INPUT TYPE=HIDDEN VALUE="hiddenValue">, where hiddenValue is the value to store.  If you need to use this type, ask me for help.
  •  Reading data into your Perl script
     Home