We accept safe and secure Credit Card and PayPal Payments.
 
Perl Scripts

All Count
Attachment Mailer
Perl Scripts Build A FAQ Plus
Perl Scripts Clock In Center
eBackup Automated
Easy Poll
eSurvey
Fetch a File
Form Maker
Mailing List Server
MySQL Mate
PDF Creation
QCart
Quick Fix
Quote of the day
Speed Search
Task Manager
Traffic Pack
Upload Plus
Upload Gold
Upload Pro
Website Manager

 
Free Perl Downloads

Free Perl Scripts Main Page
Free Perl Scripts 404 Alerter
AccessLog Viewer
Build A FAQ
PHP Scripts eBackup
Free PHP Scripts ErrorLog Viewer
eVars - Server Info
HT Pass Creator
Upload Lite
Website Manager

 
JavaScripts

Free Java Scripts Alert Boxes
Free JavaScripts Browser Sniffer
Check email
Generators
Slide Show
Sudoku
Window Maker
More...

 
Extra Utilities

ASP Scripts Ascii Codes
Free ASP Scripts Color Picker
Font Finder
HT Pass Creator
Meta Cloak
Meta Magic
Pano Zooms
SlideShow
Server Size

 
Online Tutorials

Free HTML Scripts Glossary
Free HTML Scripts HTML
JavaScript
MySQL
SSI
Build Traffic
Other

 
Miscellaneous

About Us
Graphics
Testimonials
Installations
Latest versions

 
Hawk Eye in Tennis

Should Hawk Eye replace linesmen and lineswomen at all tennis tournaments?







 
View all Polls

Run Polls on your site

Run your own Surveys

 
Store Download FAQs Contact Us Support Programming Policies  
Contents Intro Your first page Text Images Links Lists Tables
Frames Forms Sounds Styles Symbols Colors Tags Publish Index

Chapter 8

Forms

Ok. By now you should be getting the gist of html 4. Easy huh? So easy, you're going to fly through this chapter.
Below is the source for a simple but complete form.

<form action="/cgi-bin/formmail.pl" method="get">

First name <input type="text" size="46" value="" name="realname">
E-mail <input type="text" size="46" value="" name="email">
Comments <textarea rows="5" cols="50" name="comments"></textarea>
<input type="submit" value="press here">
<input type="hidden" value="admin@email.net" name="recipient">

</form>

The effect

Recipient
Name
From E-mail
Enter your enquiry in the space provided below:



  

The breakdown

Obviously i have used a table which would allowed me to position each element. Start with the opening <form> tag and finish with the closing </form> tag. Inside this tag use the action attribute , which points to the location of your cgi script. Then you must add either 'get' or 'post' in the method attribute.

Next add the 1st input field. Input fields have no closing tag and are one line fields. The textarea field which can be as many lines as you like does have a closing tag. The hidden input field is sometimes used to pass information to the cgi script. And finally the submit input field was added which is like an 'ok, send it now' button.

If the idea of learning to implement cgi scripts is too daunting for you at this stage, just replace the url in the action="" attribute with a mail to link ( Chapter 4 ).

action="mailto:you@youraddress.com"

Choose an attribute for the input tag from the drop down menu below to see its description.



A common mistake when using the textarea tag is to forget the closing tag.

Drop down menus

To create drop down menus use the <select></select> tag in between the opening and closing <form> tag. In between the opening and closing tag use the <option> tag like this...

<select>
<option value="one">one
<option value="two">two
<option value="three">three
</select>

Effect

... to remove the arrow and allow the user to see more than one option at a time type multiple and size="" inside the opening <select> tag.

Form to e-mail CGI script.

We offer a free form to email script called AllFrom which works with multiple forms, not just one, storing submissions on your server. You must have a CGI enabled web host.


Contents Intro Your first page Text Images Links Lists Tables
Frames Forms Sounds Styles Symbols Colors Tags Publish Index
Speed Search our site
Plesk Hosting
Linux servers with Plesk Control Panel, cgi-bin, crontab manager, Mysql, PHP and ASP.

Mailing list management made easy

Discounted Scripts
Subscribe to our periodial newsletter to receive special offers.

Bathroom Hygiene
How often do you thoroughly clean your bathroom?








View all Polls

Run Polls just like this one on your website!


About us | Contact us | Script FAQs | Script Support | Website Hosting | Our Policies | Store | Testimonials
Subscribers log in here. Subscribe to our periodical newsletter for special offers on commercial scripts, hosting, exciting business opportunities, and industry news and events. Our Mailing List Software is powered by Consolidator    
HTML Plain text
©1999 - 2015 All content Copyright PerlScriptsJavaScripts.com Proudly hosted by LinuxHostingPlans.com