Forum Moderators: coopster & phranque

Message Too Old, No Replies

form mail question

         

gemmie

3:34 am on Jun 20, 2003 (gmt 0)

10+ Year Member



hello,

i was wondering if there is a way to link a form from a site with out a cgi-bin to a site with a cgi-bin....i have set the scripts and the html up....but am getting an error when trying to subnit anything...

"Bad Referrer - Access Denied
The form attempting to use this script resides at [example.com...] which is not allowed to access this program.

If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

Add 'www.example.com' to your @referers array."

how do i do this and if so,do i need to add the e-mail address to the formmail.pl, that i want this particular form to go to, to the formmail.pl as well....if i do how do i do this with out messing uo the script and form that i have on the sute with the cgi-bin

[edited by: sugarkane at 6:47 am (utc) on June 20, 2003]
[edit reason] Generalised domain name [/edit]

DrDoc

3:38 am on Jun 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Open your formmail.pl and look for the line that starts with @referers. Edit that line to include your domain.

gemmie

11:06 am on Jun 20, 2003 (gmt 0)

10+ Year Member



thank you...but now i guess i have a silly question....what is the actual code to add it in that line...i have tried to do that and am still getting errors...

@referers = qw(sitewithgdi-bin.com id239.securedata.net);

sugarkane

10:51 am on Jun 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not overly familiar with formmail, but

@referers = ('sitewithgdi-bin.com', 'id239.securedata.net');

should do the trick.

DrDoc

6:12 pm on Jun 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, maybe you need to add the www.* equivalents too.