|Pathologically Eclectic Rubbish Lister|
How do I write a CGI script with form validation?by blazesixty (Initiate)
|on Aug 16, 2004 at 10:49 UTC||Need Help??|
blazesixty has asked for the wisdom of the Perl Monks concerning the following question:
Hail all perl masters!
I come for wisdom, simple one it may be to you, but a tremendous help to me.
I need to write a few perl scripts to generate html pages for E-commerce processing purposes. The procedure would go as follows :
User hits order-now link and it brings up a html page with the usual order form fields (name, adress) yada yada.
I would like the Post target for the form to be a clever perl script that does the following:
* Validates user input, if incorrect, posts back with red asterisks, and prompts for user input fixation.
* If input is correct, script calculates cost of order and generates a new HTML page, the new HTML page will have all the values listed in the previous HTML page, but with the calculated costs etc. This page will post to the merchant account gateway.
Thats it! That is all I need. I need some guidance, but not something too overwhelming. I have joined some perl IRC channels, and there all I get is "check out perldoc.com"
Some examples of existing work would do wonders for me. I am positive you guys have done something like this before!
20040816 Edit by ysth: change title from: Perl newbie