HTML and CSS Reference
In-Depth Information
How forms work
If you use the Web at all, then you know what a form is. But you might not have
really thought about what they have to do with HTML. A form is basically a web
page with input fields that allows you to enter information. When the form is
submitted , that information is packaged up and sent off to a web server to be processed
by a server script. When the processing is done, what do you get? Another web page,
of course, as a response. Let's take a closer look at how this works:
The browser package s up all the
dat a in the form an d sends it
ove r to the web ser ver.
firstname=buck
lastname=bonz
item=ja a
number=2
1
Server Script
Web Server
Browser
The server script processe s the data in the
form and creates a brand -new HTML page as a
response, which it hands ba ck to the web server.
2
<html>
<head>
<title>
Your Order has
Processed
</title>
<head>
<body>
<p>Thanks for your
it will be shipping
soon!
</p>
</body>
</head>
Server Script
Web Server
Browser
The response is an
HTML web page.
 
Search WWH ::




Custom Search