Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,208   Yesterday: 1,015   Max: 1,872   Total: 464,261   Current Users : 22 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

METHOD = GET

GET sends the data as part of the URL. For example, suppose you enter the value "West Rochester" in this form below:

this code produces this
<FORM METHOD=GET ACTION="../cgi-bin/mycgi.pl">
town: <INPUT NAME="town"><BR>
<INPUT TYPE=SUBMIT>
</FORM>
town:

The value entered in the "town" field is tacked on to the end of the CGI's URL like this:

../cgi-bin/mycgi.pl?town=West+Rochester

When the form data (or "query data") is added to the end of the URL it is "URL encoded" so that the data can be used in a standard URL. The neat thing about URL encoding is that each different query to the CGI has a different URL. Those unique URLs can be used directly in links without any form being involved. For example, the URL above can be used to create a link to exactly the same CGI results:

<A HREF="../cgi-bin/mycgi.pl?town=West+Rochester">West Rochester</A>

which creates this link: West Rochester.

The amount of data that can be sent with a URL is limited. GET is good for short forms (ten or fewer fields and no <TEXTAREA ...> or file uploads).



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.