sterankin
02-24-2004, 08:48 AM
With regards to my webspace, I am trying to set up a web form mailer (i.e. a
form which when submitted is emailed to me), using a Perl script.
I have placed the Perl script inside the /cgi-bin dir on my webspace. (it is called "cgiform2email.pl")
I have also placed the HTML web form inside the /htdocs dir on my webspace
In the PERL script, I have the following lines (well there are a lot, but these may be the relevant ones to my question):
#!/usr/bin/perl // this is location of perl??
my $mailprog = '/usr/sbin/sendmail'; // this is the location of sendmail, I cannot see a /usr/sbin directory in my webspace, although my web host say this is the default location
In my HTML webform I have the following code for the action to be taken on
submit of the form:
<FORM method=get action="/cgi-bin/cgiform2email.pl"> // PERL script location
Problem is, its not working!
I get a the following message:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request"
I am hoping someone may be able to help me with this. Just for reference, I got the PERL script from this location:
http://www.ezscripting.co.uk/cgiform2email/
My valuehost web address iss www.mofomovies.co.uk, should I be using www.mofomovies.co.uk/pub/home/servername/cgi-bin/
What is the actual DNS to visit my site????
Thx
form which when submitted is emailed to me), using a Perl script.
I have placed the Perl script inside the /cgi-bin dir on my webspace. (it is called "cgiform2email.pl")
I have also placed the HTML web form inside the /htdocs dir on my webspace
In the PERL script, I have the following lines (well there are a lot, but these may be the relevant ones to my question):
#!/usr/bin/perl // this is location of perl??
my $mailprog = '/usr/sbin/sendmail'; // this is the location of sendmail, I cannot see a /usr/sbin directory in my webspace, although my web host say this is the default location
In my HTML webform I have the following code for the action to be taken on
submit of the form:
<FORM method=get action="/cgi-bin/cgiform2email.pl"> // PERL script location
Problem is, its not working!
I get a the following message:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request"
I am hoping someone may be able to help me with this. Just for reference, I got the PERL script from this location:
http://www.ezscripting.co.uk/cgiform2email/
My valuehost web address iss www.mofomovies.co.uk, should I be using www.mofomovies.co.uk/pub/home/servername/cgi-bin/
What is the actual DNS to visit my site????
Thx