Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How do I write a CGI script with form validation?

by nothingmuch (Priest)
on Aug 16, 2004 at 11:24 UTC ( [id://383257]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I write a CGI script with form validation?
in thread How do I write a CGI script with form validation?

I beg to differ.

You cannot allow the server to trust that the client side is not tricking it, especially for ecommerce.

All form validation must happen at the server, and possibly, for a better user experience (think responsiveness), also validated with javascript.

I'd also like to note that inn my experience most the javascript validation I met really sucks. Just recently I had to fool an online purchase form which was trying to verify my CCN using javascript that calls a VB script function. I have MacOS X, and use Safari, which isn't VB script enabled.

The only way I could actually buy the thing is if i cheated the javascript. It was simple, too, i just entered the URL javascript:document.formname.submit().

-nuffin
zz zZ Z Z #!perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://383257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found