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