Forum Moderators: coopster & phranque

Message Too Old, No Replies

FormMail gremlins...

Matt Wright's formmail.pl selectively doing weird things

         

kit_kalen

5:50 pm on Oct 17, 2001 (gmt 0)

10+ Year Member



I have about a dozen forms in a website I created, all of them using Matt Wright's formmail.pl without any problems. I added a new page with a new form which utilizes this same script. But when the form calls the script it gives me "Bad Referrer/Access Denied" errors and tells me to add the URL to the @referers line. Of course, it's in there; I haven't modified the script since creating the other forms. And I tested a couple of the other forms and the old forms work just fine. Only my new one doesn't work. The only differences between this new form and the older forms are what's in the hidden fields in the form. I'm calling the perl script in a javascript function, but even outside of the function, within the html form tag it's still giving me this error. How can this be? Anybody have any ideas?

sugarkane

8:14 pm on Oct 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi kit_kalen, welcome to wmw :)

A shot in the dark: are you calling formmail from a different directory on your site compared to the other times you call it?

kit_kalen

9:16 pm on Oct 17, 2001 (gmt 0)

10+ Year Member



Thanks!

Yes, I am, but very few of the working forms are in the same directory as each other. Very spread out. (All, though, are under the same domain.) Should that make a difference?

john316

11:58 pm on Oct 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



don't use "http://www.domain.com", if you do the form won't work with "http://domain.com"...just use "domain.com" for the referrer, you may also want to add the IP in the referrer.

kit_kalen

2:26 pm on Oct 18, 2001 (gmt 0)

10+ Year Member



Thanks for the advice. However, in the referer, I have domain.com, www.domain.com, IP address, as well as a couple other domains that point the same IP address. I call the script using [domain.com...] which is how I call it from all the other forms on the site. It seems to me like I've covered all my bases.

kit_kalen

8:57 pm on Oct 18, 2001 (gmt 0)

10+ Year Member



Well, I got it to work, just by cutting and pasting a functioning form and modifying the page accordingly. Don't really know what the problem was, but it's fixed. Might not have liked some of my extra javascripting. Anyway, all is fine now. Thanks for your advice.