yeah you would have to do this with CGI.
something like this
Code:
#!/usr/bin/perl
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)
open(STORE,"store.txt");
print STORE "Name: $name\nPhone: $phone\n";
close(STORE);
}