is there a way to write a form..

They have: 61 posts

Joined: Aug 2000

what is the best way to securly handle a form? Is there a free script that could parse the form fields, and then write them to a directory that would then be accessed by another CGI script?

help! All i need is to securely handle the contents of a form! thanks

alex

[=1]Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.[/=1]

They have: 62 posts

Joined: May 2000

I don't think there's a CGI script that does that. You'd need SSL encryption.

They have: 61 posts

Joined: Aug 2000

... I'm running SSL, but how do i securly handle the information i get from a form on SSL? What is the best way. I know formmail.pl is not a good idea. So what is?

thanks

alex

[=1]Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.[/=1]

They have: 161 posts

Joined: Dec 1999

Do you just mean to ask "what's a good way to read the results of a CGI query?"

If so, I suggest the CGI.pm module, which comes with recent versions of Perl. It does all the hard stuff for you, and it does it correctly (which is a problem with many of the cut-and-paste methods you've probably seen).

Here's some sample code:

#!/usr/bin/perl
use CGI 'param';
print "Content-type: text/html\n\n";
print "Your favorite ice cream is ", param('ice_cream');
'

Assuming you call this CGI program from a form with a field named 'ice_cream', you'll get meaningful results.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.