URGENT!!!!Anyone know PERL or anything about online forms.....help!!!

skeletor

Member
Aug 7, 2001
189
0
0
I'm redesigning a website for a company. They already had a cgi-bin based form reply thing on their site. I downloaded the FormMail.pl and edited some variables and then uploaded it. Now the server gives an error 500.

I've uploaded in ASCII mode....nothing
I've uploaded in Binary mode....nothing.

Same error. I'm in trouble here if I don't fix this. Any ideas, please help!!!
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
you *do* have a copy of the original... right? if you're using unix, you can use that command (forget what it was) to compare and display changed lines... then see what you did wrong.
 

skeletor

Member
Aug 7, 2001
189
0
0
Originally posted by: gopunk
you *do* have a copy of the original... right? if you're using unix, you can use that command (forget what it was) to compare and display changed lines... then see what you did wrong.

No, no copy of the original. I didn't think simply uploading a file could screw everything. I'm in deep sh!t now.

 

jjones

Lifer
Oct 9, 2001
15,424
2
0
You'll need to upload in ASCII, not binary, then CHMOD to 755. You should only need public read and execute permissions so 755 is what you want, not 777.

If you need a new copy of the formmail. pl, just search for it and download a new copy; it's a common universal script used for generic forms. It's probably Matt Wright's script or a version of it.

Edit: BTW, you'll need to be sure that the path to perl, the first line in the script, is correct. It's usually this: #!/usr/bin/perl

You'll also need to be sure the path to the sendmail program is correct which is usually this: $mailprog = '/usr/sbin/sendmail';

Just open the original script in notepad or something and compare it to the new copy and make any appropriate changes.

Edit2: Oh yeah, you'll also probably need to set the @referers. This line:
@referers = ('yourdomain.com');
Just change 'yourdomain.com' to whatever is the name of your domain, you may want to include the IP address as well. Separate using commas like this: 'yourdomain.com', '129.23.45.678'. Be sure to include the single quotes at the beginning and end of each referer.
 

Rakkis

Senior member
Apr 24, 2000
841
1
0
Tsktsk. Back stuff up next time.
Check the places where you made the changes. If all you did was edit variables, you probably have a typo somewhere. That or maybe missing ;'s