13013Validate form fields for no input with JavaScripthttp://www.designplace.org/scripts.php?page=1&c_id=22Checking that form fields have input is extremely important - having this performed before the form is submitted, client side, before its handled by anything at the backend such as an SQL or MS Access database, is vital and an additional factor in getting accurate input. This code contains functions to check null input and also to check if an email address follows a valid pattern.JavaScript > Scripts and Programs > FormsOct 12, 2006
A script that closely examines the content of a form box to ensure that the user entered a valid email address. If not, the form submition is canceled, and the surfer prompted to re-enter a valid address. The script makes the following assumptions regarding what a valid email address is:
Do you ever receive multiple copies of a single form submission? Do your visitors click the submit button over and over, hoping it will hurry up the process? Well, JavaScript can solve your problems! The script will prevent the visitor from submitting the form after the first submission. Basic field validation also included! Great!
This script checks the contents of a form box to ensure that its a number (updated to accept demicals). If not, the submission of the form is canceled, and the surfer prompted to re-enter a valid number. This script requires NS 4.x or IE 4.x to function-all other browsers will simply not participate in the number checking.
Many websites, like thesitewizard.com, have a feedback form of some sort so that visitors can make comments to the webmasters. If you have such a form on your site, I'm sure that from time to time, you would have received the results of your form with some essential field (like the email address or the visitor's name, or even the feedback itself) omitted
search engine & formatted form layout - On the first place you better add in your website a few lines code to offer your visitor an handy search engine , better a Meta Search , your visitor should be set at easy to stay on your site , but do not invite him to replace your page with his search , so let him open the search page in another window ...check the source code of this page and copy the form if you like www.info.com ...but do not forget to use target="top" attribute. Do not forget to control every now and then that your search engine starting form works , as it may happen that the search engine owners change their code reference , so keep an eye on the action code in your form. I enclose herein the formatted code I used in my homepage as I believe that a touch of color and a saving on a couple of lines form returns'spaces is cardinal for winning the neverending fight with the web page formatting.
To expand these themes , review and updating ,
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.