Form Validation Using PHP.. Help

whizynix02

New Member
Messages
95
Reaction score
0
Points
0
Hello every one..

I need a contact us form that has a validation for:

  • empty values
  • numbers only
  • input length
  • email address
  • strip html tags
  • enable and disable a field when i click a radio botton
i've encoded some of it but i seems that it does not jive together. hmm like my email validation php and validation on fields like text box and radio button does not jive in. Can i ask for some help ..

thanks in advance..
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
Why don't you post some of your code so that we can suggest additions/modifications?
 

kbjradmin

New Member
Messages
512
Reaction score
2
Points
0
use spry by adobe; its not php, its javascript; but i think it will do what you want.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Client-side validation is only to improve user experience. You still must validate input on the server.

Well, his last request

Code:
enable and disable a field when i click a radio botton

does seem to be client side.

It would be nice to know if he actually wants to strip all HTML codes or just 'sanitize' them.

By 'numbers', are 14 14.1 and 1.41e3 all ok?

Empty values and input length can be considered the same think. First strip leading/trailing white space and then take the length. If it is zero, it is an empty value.
 
Last edited:
Top