Forms

Forms are used to send information from a page to a program that will then "build" the next page. The variables in a FORM are set by the INPUT tags included in it. The ACTION attribute of the FORM specifies the program that is called.

A FORM
Within a FORM, you set up INPUTs that assign user input to variables. In this case, we are setting whatever is typed into the TEXT line to the variable named "first_name". Because the value attribute is initially set to "Smart Student", it defaults to this value if no other is typed.

What is your first name?

Next Example.