in reply to CGI form validation on submit

Although you can use Perl as a scripting language in a browser under Windows if you've installed ActiveState's Perl, I don't think it's a good idea to go that way. IMHO it's best to stick to JavaScript for such things.

Just my 2 cents, -gjb-

Replies are listed 'Best First'.
Re: Re: CGI form validation on submit
by Anonymous Monk on Aug 13, 2003 at 12:57 UTC
    Actually my cgi form populates a document. I am currently using JavaScript to do my blank validation checks but now want to use perl to do blank validation checks and also check the document to see if the data entered already exists. So I am assuming I need to do this with something that can open up a file and check if the data exists before I populate the document. I also assume I can do this with the onsubmit?

      It seems to me you're confused about client vs. server functionality. If you want to store the data entered in your form after it's been submitted, you're supposed to do this serverside, i.e. on the webserver you're submitting the form to.

      It depends on the webserver you use what's the best way go, but I suppose you'll want to use CGI on the server (which can, but need not, be a perl script).

      If you've no experience with CGI programming (or even don't know what I'm ranting about), have a look at the tutorial section of the Monastry, there you can find quite a number of introductory texts on various aspects (the ones by Ovid seem relevant for you).

      Hope this helps, -gjb-