CMPS 002 - Computer Literacy

Prof. Paulo Franca

CyberSlug Rules!

Classes

Class Syllabus

Grading Policy

Labs

Interact

Login

  • enter system
  • get attendance
  • submit work
  • take lab quiz
  • check scores

Help

Help me!

Links

Staff only

 

 

 

Datacare   Ahshay

 

Using Forms - Client/Server Interaction

Forms:

  • Some web pages may contain "form" fields
  • Form fields may be filled by the user
  • The values inputted will be sent to the server
  • Server will use the information and decide what to do

 

Example of a form:

Q:What is the official mascot of UCSC?

Answer: It is the .

Please type your name:


What happens when you submit?

  • The values that you type will be sent to the server.
  • The form specifies the URL of the program that will receive the values.
  • The server program will decide what to do.

In the above example (you may look at the html code):

  • URL of the remote program is "sample.php4"
  • The fields are "mascot" and "yourname"

See the actual code of the server program: