View Full Version : Email Form

08-03-2006, 12: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

08-03-2006, 01: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.

08-03-2006, 02:03 PM

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.




EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum