Click Here to Enter "Form (web)" download area
A webform on a web page allows a user to enter data that is sent to a server for processing. Webforms resemble paper forms because internet users fill out the forms using checkboxes, radio buttons, or menus. For example, webforms can be used to enter shipping or credit card data to order a product or can be used to retrieve data (e.g., searching on a search engine).
Contents |
XHTML/HTML forms
A form in XHTML or HTML is by far the most common way to use a form online.
The following elements can make up the user-inputting portion of a form:
- input field
- text – a simple text box that allows input of a single line of text
- checkbox – a check box
- radio – a radio button
- file – a file select control for uploading a file
- reset – a reset button that, when activated, tells the browser to restore the values to their initial values.
- submit – a button that tells the browser to take action on the form (typically to send it to a server)
- textarea – much like the text input field except a textarea allows for multiple rows of data to be shown and entered
- select – a drop-down list that displays a list of items a user can select from
The sample image on the right shows all of these elements:
- a text box asking for your name
- a pair of radio buttons asking you to pick your sex
- a select box giving you a list of eye colors to choose from
- a pair of check boxes to click on if they apply to you
- a text area to describe your athletic ability
- a submit button to send it to the server
These basic elements provide most possible graphical user interface (GUI) elements, but not all. For example, there are no equivalents to a combo box, balloon help, tree view, or grid view. A grid view, however, can be mimicked by using a standard HTML table with each cell containing a text input element. A tree view could also be mimicked through nested tables or, more semantically appropriately, nested lists. Many of these are available through JavaScript libraries.
Combined with programs
Forms can be combined with various scripting languages to allow developers to create dynamic web sites. This includes both client-side and/or server-side languages.
Client-side
{*}Simple mailto: actions.
The de facto standard client-side scripting language for web sites is JavaScript. Utilizing JavaScript on the Document Object Model (DOM) leads to the method of Dynamic HTML that allows dynamic creation and modification of a web page within the browser.
While client-side languages used in conjunction with forms are limited, they often can serve to do pre-validation of the form data and/or to prepare the form data to send to a server-side program.
Server-side
Server-side programs can do a vast assortment of tasks to create dynamic web sites — from authenticating a login through, for example, Lightweight Directory Access Protocol to retrieving and storing data in a database to spell checking to sending e-mail — quite unlike client-side programs. Most server-side program requests must pass through the web server's Common Gateway Interface to execute the program to actually perform the tasks.
The advantage of server-side over client-side is the concentration of functionality onto one computer (the server) instead of relying on each web browser implementing all of the various functions the same. This very problem is quite evident to any developer who writes JavaScript code for multiple browsers.
Scripting languages are the most common server-side programs used for web sites, but it is also possible to run compiled programs.
Some of the scripting languages commonly used:
Some of the compiling languages commonly used:
PHP
PHP is one very common language used for server-side languages and is one of the few languages created specifically for server-side programs.
A PHP script may:
- display the information on another page (ex: asking for a user's name and then displaying it on the web page)
- act as a logon interface
- post the data to a database (ex: mySQL, an ASCII file, etc.)
- store the information on the viewer's computer in an HTTP cookie
- generate an e-mail, either using the data or including said data in the e-mail's contents (possibly as an e-mail attachment)
The HTML form learns where to pass the data from the action attribute of the form's HTML element. The target PHP file then retrieves the data either through POST or GET (see HTTP for more information), depending on the programmer's preference. Here is a basic form handler PHP script that will post the form's contents, in this case "user", to the page using GET:
form.html
<html> <body> <form action="form_handler.php" method="get"> User Name: <input name="user" type="text" /> <input type="submit" /> </form> </body> </html>
form_handler.php
<html> <body> <?php /* * This will print whatever the user put into the form on the form.html page. */ $name = $_GET['user']; echo "Hello, ". $name ."!"; ?> </body> </html>
In the above script the $_GET[''] and $_POST[''] commands need to be changed, depending on what is used in the form, however $_REQUEST[''] is used for both so it is more efficient to use for form collection.
Perl
Perl is another language often used for web development. Perl scripts are traditionally used as Common Gateway Interface applications (CGIs). In fact, Perl is such a common way to write CGIs that the two are often confused. CGIs may be written in other languages than Perl (compatibility with multiple languages is a design goal of the CGI protocol) and there are other ways to make Perl scripts interoperate with a web server than using CGI (such as FastCGI or Apache's mod perl).
Perl CGIs were once a very common way to write web applications. But not being specifically designed for web development, Perl is now often viewed as less practical (both for developers and users) than specialized languages like PHP or ASP[citation needed]. This is especially true if Perl modules would need to be installed on the web host or if wanting to use a non-CGI environment that might require extra configurations on the web server. Some web hosts also rely on interpreter-level sandboxing, which while possible with the Safe module, wouldn't be very practical and undoubtly break a lot of scripts considering common practices.[citation needed] Similar considerations might apply to other general-purpose scripting languages like Python or Ruby.[citation needed] For these reasons, a lot of cheap web hosts nowadays effectively only support PHP and web developers often seek compatibility with them.[citation needed]
A modern Perl 5 CGI using the standard CGI module with a form similar to the one above might look like:
form_handler.pl
#!/usr/bin/perl use CGI qw(:standard); $user = param('user'); print header; print html( body( p("Hello, $user!"), ), );
Form-to-email scripts
Among the simplest and most commonly needed types of server-side script is that which simply emails the contents of a submitted form. This kind of script is frequently exploited by spammers, however, and many of the most popular form-to-email scripts in use are vulnerable to be hijacked for spamming purposes. One of the most popular scripts of this type was "FormMail.pl" made by Matt's Script Archive. Today, no version of this still frequently used script is considered secure.
To avoid the confusion and difficulty of installing and using scripts, webmasters often use a free forms processing service to get their forms working.
See also
External links
- Forms in HTML documents, the W3C's spec page for forms in HTML 4.
When three luckless slackers form a rock band, they're bound for nothing but trouble. American Something is a documentary-style film about a fictitious band by the same name. Throw together the enigmatic and moody lead singer Kent Bankman (Wayne Madsen), bassist Rusty Redmond (Jeff Slag) and the outrageous and unpredictable drummer, Skidz (Kevin Woodard) and the laughs have never been louder. Coupled with this are a harshly probing filmmaker, a push-over reporter that'll bend over backwards for the band, and a recording studio owner who plays in a musical "trio" despite the fact that he's the only member.
Author: TedescoMedia
Keywords: American Something Trailer Web
Added: January 5, 2009
Holoterra Video 1 2
This green business will help you profit through web design, forms and support materials and by leading natural history trips domestically and worldwide.
Author: Holoterran
Keywords: "Green Business" Holoterra "Lucien Bouffard" "White-tailed Hawk"
Added: January 5, 2009
Fill in forms in a snap and make money
Make Money Online. Make Money Online. How To Make Money Using Youtube. Make Money Make Fast Sales With Ebay "Make Money with Online MLM Free Skype Traffic $1 Martix Earn $1000'S PROVEN!! My Search Funds Make Money Make money, Get Paid to Search!! free money, pay to click, pay to read, pay to survey Make Money With Every Google Search MAKE MONEY ONLINE Look What I Did to Make $15000 Easy Method "Make Money Online" affiliate program with Ezines SoloAds even 12 yrs old Can uVme MAKE SERIOUS MONEY WHILE PLAYING GAMES Make Money Online The Quickest Way to Make Money Online How To (Work From Home) And Make Money ($2,000) In 1 Day! How to Make Money With Google AdSense [make money online] No risk FREE investment The Amazing Work At Home Wealth Formula HOW TO MAKE MONEY ONLINE MORE THAN BUX.TO |How to Make Money Online Bux.to Project Payday A Scam? Make Money Online gdi review The Complete Review Make Money on Squidoo How to 101 Teenagers can earn money online $100,000 Per Month Online Yes Per Month! Bux.to |How to Make Money Online| Bux.to How to Make Money Online With MySpace [RS] FASTEST MONEY MAKER reviews tips tutorial tricks Profit Site Make Money Complete Money Making Site Setup FREE! How to Make Money With Google AdSense Wow make money online easy $6000 per Week How To Make Money Online ($2,000) in 1 day using Make Money Online (YouTube) if you want to make money online,i found this site last week FREE Easy Way To Make Money On Ebay Make Money Uncover Hot Niche Items How To Make Money Online affiliate programs 10 Ways to Make Money with MySpace How can I make money with MySpace? Or rather, should you even bother with developing MySpace as another source of online income? How to Make Money Using MySpace It's very possible to make money using MySpace as your gateway. gdi review How to Use Myspace to Make Money Online Check affiliate program out How to Use Myspace to Make Money Online Make Money on MySpace Make Money with Facebook great resource to make money with MySpace, Facebook, and other social Videos: MySpace Videos. How to Make Money Online using YouTube and Myspace Youtube Video (web 2.0) Get your free report here Now you can learn ideas for using MySpace to make money on eBay are nothing Unlocking MySpace - gdi review The #1 MySpace Info Product on the Net! How You Market, Promote Youtube Video And Make Money On MySpace. Internet Marketing How To Start And Grow Your Internet Business Internet Marketing - FREE Internet Marketing course. Find out how I turned a simple idea into over a million dollar a year business using Online Marketing. Internet Marketing Center - Learn How to Make Money Online Internet Marketing - Get your free internet business strategies and internet marketing tips to get your profits soaring. affiliate programs Internet Marketing,gdi review Search Engine Marketing, tricks full part time by Internet marketing, buy sell search engine marketing and online marketing web site offering businesses the opportunity to enhance their online presence through media Internet Marketing & Online Marketing Internet Marketing by Online Marketing to get more website visitors and leads in search engines (SEO), blogs, social media. Google AdSense - Making Money With AdSense Is making money with Google AdSense as easy as everyone seems to think it is? AdSense and other Google programs offer an opportunity to make money from your Google Adsense, How to Make Money arrow Website Marketing arrow How to Make Money. Adsense is a Google How to Make Money Using Google's AdSense and AdWords One of the latest online money making strategies is to use Google's AdSense and gdi review or to use Google's AdWord programs. Each of these programs has the potential How To Make Money Quick With Google Adsense Many people think its hard to make but people are making money 1000 Real Millionaires Reveal Their Top 13 Success Secrets Seeing business opportunities.affiliate program The Fast Way to Riches Finally Revealed Viral Videos product ebook dvd Make a Burning Laser recording internet marketing myspace google adsense making money cash online business affiliate Video How to make money on Myspace make, money, on cash online business millionaire opportunity expert reveal Make Money Online Millionaire Marketing Secrets! Now, before I reveal how you can grab your personal copy of this amazing, earn using what these experts reveal(Youtube Video) internet myspace google adsense making make money cash online business youtube video opportunity expert reveal how-to-make-money-online internet myspace adsense making make money cash online business youtube video work from opportunity Work From Home. This is a home based business opportunity. FREE Make money Online (Make Money O
Author: Forgotentruths
Keywords: Video@2009 0105 201905
Added: January 5, 2009
web love
Web Love Sexy teem boy kiss a girl tatu nas nedagoniat dawet gueta tomerou cant wait emocions Ikiss A girl hair form artai Majami dag citi
Author: burundukasTV
Keywords: burundukasTV
Added: January 5, 2009
Christ As Cosmic Cruiser, 9: Testimonials of apostles & Prophets that Christ has been seen & Lives!
If Christ is alive, where is he? Where has he been? Where are his witnesses? Where has he gone in a universe most definitely inhabited by other life forms of all different types, & races. If he has been seen in modern times, what have those who have seen him in visions & near death experiences said about him. These, & other polemical issues raised by critics will be explored in these final chapters of Christ, as Cosmic Cruiser. Have other nations also seen him? Why are there wandering wounded god traditions all over the world? Could they be the faded & legend zed memories of Christs world trek to them? These issues will be explored & considered. Another chapter for historical & educational purposes. This series is not an official representation of anyone's church, but a historical documentary. For official beliefs & doctrines, see the official web sites of the religions mentioned here.
Author: JustinMartyrJr
Keywords: "Christ is alive" "has been seen" LDS "Joseph Smith" "Early Christian art" "temple evidence"
Added: January 5, 2009
Can't get data from Amazon.