Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by bgreenlee (Friar)
on Aug 16, 2004 at 11:18 UTC ( [id://383254]=note: print w/replies, xml ) Need Help??


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

In addition to ovid's tutorial already mentioned, here are a few more links for you to check out:
Perl CGI Tutorial
Beginner's Guide to CGI Scripting with Perl

Also, you'll need to pay close attention to security if this is for an ecommerce app. E.g. don't trust that the order total passed to you in a POST is right, as it's easy for an evildoer to make up their own price and bypass your validation. One way around this is to store sensitive data on the server, and reference it via a session id, which gets passed via POST or GET. Have a look at Apache::Session. You can also validate data being passed to you by including an MD5 (or SHA) hash of the values plus some secret key.

-b

  • Comment on Re: How do I write a CGI script with form validation?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-16 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found