Form validation?

New Oceans - February 10, 2006 - 10:47
Project:form_mail
Version:4.6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

For a new site I use form_mail.module and forms.module to create several different mail / contact forms, that can be used by anyone (it's not necessary to log in as a user) and that will be sent to different addresses (depending on the form). These addresses are hidden BTW.

The forms are created by using the required php code at a static pages. At submission of any form, I'd like to validate some fields. Think about fields that are required, or fields that contain an e-mail address.

What is the best way to achieve this: how should I validate each form? And can anyone give me some advice about how to avoid spam with these type of forms?

Thanks for replies!
Marc

#1

pragna - August 18, 2007 - 07:44
Title:Form validation?» dgegdfgd

#2

New Oceans - August 26, 2007 - 20:55
Title:dgegdfgd» Form validation?
 
 

Drupal is a registered trademark of Dries Buytaert.