Forms are used to transfer information from a web page to either a database or to send an e-mail to someone. Forms are an excellent way to get feedback about your web site, take customer orders, or get information from your site's visitors. Most forms rely on CGI scripts. CGI stands for Common Gateway Interface and a script is just another name for a program. CGI allows programs to be run on a server. Rather than just transmitting data, a CGI script causes the server to process information, then send data to the web browser. A form processing script will take the information that is entered into a form, process it, and either add the data to a database or send it to you in the form of an e-mail. There are many form processing scripts available for download, however, the server hosting your site has to be configured to allow cgi scripts to run. Contact your web host to determine if CGI scripting is allowed. If it is, you only need to upload the script to the proper location on the server (usually a directory called cgi or cgi-bin). You may also need to change permissions on the file (allows the server to run the file). If scripting is not allowed, there are public hosts which will process your forms for you. There is also a simple alternative to scripting described at the bottom of this page.
Be sure to close the </FORM> tag after all elements have been defined. Typically, the form processor will process the information and e-mail it to you as a simple text file. Usually you can add additional information to the e-mail to give you information about the data that is being e-mailed. Processing scripts vary in the way they send and process information. An excellent resource for form processing scripts and thousands of other CGI scripts, visit cgi-resources.com. There are also many free services on the Internet which will process forms for you on their servers. Check some of them out at thefreesite.com.
If you don't have CGI access, but still want to use forms on your pages, you can setup a form to be sent to you by the visitor's e-mail program rather than by a script. Add the following to the FORM tag to have the data e-mailed via the visitor's computer:
<FORM METHOD="post" ACTION="mailto:your@email.com" ENCTYPE="text/plain">
Although this method does not require a CGI script, its results can be sporadic. The visitor's e-mail program must be configured correctly for it to work. Also, the visitor is usually given a warning prompt warning that they are about to transfer data using e-mail. This can sometimes scare visitors out of sending the form.
Be careful with your use of forms. Visitors are much more likely to fill out a form than send an e-mail, however, many surfers are weary of transmitting sensitive information via forms. Although forms are fairly secure, you should always include alternative methods of contact on your site. If you are requesting sensitive information, such as credit card numbers, you should have the form processed on a secure server with a high level of encryption.
Meta Tags
META tags are a tool for helping a web site to get indexed correctly by many of the major spider based search engines. They are a couple of simple lines of code that go into the head section of your HTML document. The two most important META tags are the description and keywords tags. The description is used to describe your site on search engines. If you do not enter a description META tag, most search engines use the first few lines of you webpage as the description. The keywords META tag contains keywords that people are likely to search under for your page. Althought META tags can help you get listed higher on most search engines, they are probably not going to suddenly give you top placement. A good combination of META tags, TITLE tag, frequently used keywords, and good site design are likely to get you higher in the search results.
Here is a good example of how META and TITLE tags should be used:
<HEAD>
<TITLE>BATC - Advanced Web Design</TITLE>
<META NAME="description" CONTENT="Advanced web design homepage
for Bridgerland Applied Technology Center, located in Logan, Utah.">
<META NAME="keywords" CONTENT="web design, bridgerland, html,
advanced web development, logan">
</HEAD>
Tips for the description META tag:
Tips for the keywords META tag:
Tips for the title tag:
DON'T ADD YOUR PAGE TO SEARCH ENGINES IF YOU HAVE NOTHING TO OFFER VISITORS.
If you don't want your page to be listed on search engines, you don't need
META tags. Sometimes your site may be indexed, even though you have not submitted
it to a search engine. This may happen if a page is indexed that happens to
have a link to your page. If you never want your page to be added to search
engines, add this META tag:
<META NAME="robots" CONTENT="NOINDEX,
NOFOLLOW">
Robots, often called spiders, are the computers that index or search your site. NOINDEX tells the spiders not to index your site, NOFOLLOW tells the spiders not to index any of the pages that are linked to from your page.
Another kind of META tag is used for refreshing a page or automatically sending your visitors to another page. This can be handy if you have relocated your site and want to automatically take your visitors to the new site. You can also use META refresh with frames to change individual frames to rotate through banners or advertisements.
<META HTTP-EQUIV="refresh" CONTENT="n; URL=nextpage.html">
where n is the number of seconds the current page is displayed before refreshing and where URL is the address of the page that will be automatically loaded. Notice the strange use of quotation marks. The refresh will not work if the quotes are omitted or in the wrong place. Also notice the semicolon after the number of seconds. Be sure to set the delay to at least a few seconds. If you set it to one or zero, the visitor may not be able to use their back button to return to where they came from. Also, be sure to inform the user that you are going to redirect their browser. Some newer browsers allow you to turn off auto refresh, so include a link to the new page so they can manually click.
MetaTag Links
easy-submit - Lists links to 50 search engines' submission pages.
Webpromote offers a service that will build optimized META tags for your page.
http://www.worldwidelearn.com/search-engines.htm - Improve your search engine ranking
Back to Web Design Homepage.