...

View Full Version : Email Form



vinny388
08-03-2006, 01:15 PM
Hi, I have a few sites that have some simple contact forms on them.

Is there a way to make certain input fields a must for people filling them out. i.e if they dont give a correct email address the form wont send etc.

Thanks in advance

Reveller
08-03-2006, 02:55 PM
Of course. You need javascript, though. Search Google for javascript form validation (http://www.google.com/search?hl=en&q=javascript+form+validation) :) Already the first hit takes you to http://www.xs4all.nl/~sbpoley/webmatters/formval.html, which describes how to handle required fields.

apoole7
08-03-2006, 03:03 PM
Hi,

If you want to have a look at a basic solution that requires little re-writing of original forms take a look at what I posted, the script in the attachment works fine except for the question that I posted about - which is really only icing on the cake for the user.

http://www.codingforums.com/showthread.php?t=92663

Regards

Andy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum