View Single Post
Old 04-14-2007, 01:35 PM   #1 (permalink)
thejeremy
True Techie
 
Join Date: May 2006
Location: Chicago IL
Posts: 104
Send a message via AIM to thejeremy
Default Best way to do form validation?

This is a pretty simple question (I think):

Is it better to validate forms on a website using Javascript, PHP, or a combination of both? Would Javascript be better simply because it is a client-side language so things would be checked before they even reach the server?

Thanks.
__________________
CPU: AMD Athlon 64 X2 5200+ Windsor, 2.6 GHz
RAM: CORSAIR XMS2 2GB 240-Pin DDR2
VIDCARD: EVGA PCI-Express x16 GeForce 7900GS 256MB
MOBO: ASUS M2N-SLI Deluxe AM2
HDD: Seagate Barracuda 320GB 7200 RPM SATA

my blog: http://jspot.gotdns.com
thejeremy is offline   Reply With Quote