PDA

View Full Version : need hlep with my "remove" script


Fester
01-17-2003, 08:48 AM
I got this nifty script for handling remove requests from my opt-in list. It installs okay and works, it actually writes the email to the file specified, the only thing is when it is suposed to open the html document that is like a thank you page it gets an error. The remove document is found in the cgi-bin and is there, but I notice I can't open a html document in the cgi-bin. here try the script for yourself.... http://www.fctf.netfirms.com/remove.htm

do I need to do something to the confirmation html document that resides at http://www.fctf.netfirms.com/cgi-bin/removed.htm to make it show up?

Your assistance is appreciated.

Calilo
01-20-2003, 01:52 AM
you can try getting the thankyou file, aout of the cgi-bin, some servers dont let you open html files from the cgi-bin, since it is meant only for scripts, if this still dosent work, also check the file permissions,

hope it helps
Calilo

crackn101
02-01-2003, 05:32 AM
Hi Fester.

If worst comes to worst, you could either :

1) put the removed.htm in the www folder and redirect the
browser using cgi.

print "Location: http://www.yoursite.com/removed.htm\n\n";

or

2) Load the file and display it using perl.
( assuming that removed.htm is still in your cgi-bin )

open(handle,"removed.htm");
@db=<handle>;
close(handle);
print "Content-type: text/html\n\n";
print "@db";


Take Care.
Crackn101