Hello All,
I'm running an HTML form on a web hostthat looks like this:
<form method=POST action="http://learneasymoney.com/cgi-bin/sendinfo.c
+gi">
<b><font face="arial" size=5 color="#ffffff">
Name: <input type="text" name="fullname" size=35><br>
eMail: <input type="text" name="email" size=35>
</b></font>
<p align="center"><input type="submit" name="submit" background="#ffff
+00" value="Get It Now" style="font:24pt Arial Black; color:#0000FF;">
+</p>
</form>
The code for sendinfo.cgi is:
#!/usr/bin/perl -w
use strict;
my $sendto = param('email');
my $sendname = param('name');
open (LOG, ">>http://learneasymoney.com/Logs/opt-in.txt") || die("Erro
+r: " . $!);
print LOG $sendname . "," . $sendto . \n;
close (LOG);
When I enter my name and email address and click the submit button, I get sent back to the original web site and I get an error. When I go and check the opt-in.txt file, I find nothing in the file. What is going wrong?