View Full Version : form and CGI

08-28-2002, 02:28 PM
take a look at this page:

I like to do one of them validation forms. that is: the webuser first fills in a form with required fields, and if the form is filled with address and ph and such the user gets to download, but if not -> no download!
I can't figure it out. do I need cgi for this?
or maybe some more computer awareness...


08-29-2002, 12:49 PM
yeah you would have to do this with CGI.

something like this


use CGI qw(param);

$name = param("name");
$phone = param("phone");

if ((!$name) && (!$phone)) {
print "You didnt enter the fields required";
} else {
print "Location: download.zip"; # the location of the file to be downloaded (dont worry they most likely wont see this)
print STORE "Name: $name\nPhone: $phone\n";

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum