|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
I am getting an error in a new FormMail script which I have never had before. The 'Bad Referer' msg appears .
The only differences I can see in this case is that is that the domain I have to work with is in the form: abcdefghi-jklmnop-qurstuvwxyz.co.uk ie it is 28 characters long including 2 hyphens. Anybody else had problems with Matt's FormMail with a hyphenated domain and/or a domain that is so long? Many thanks for any help. Robert |
|
#2
|
|||
|
|||
|
Second thoughts ...
Posting a Q? always causes you to find out more about your problem, strangely enough.
Hyphenation can't be the problem, I've since discovered. Not sure about the size of the domain, but I'm doubting that too! I've discovered that I can run the FormMail script successfully if I use the copy of the page that has the form that resides on my hard disk, ie running the form from c:\mydocs\myform.htm etc. If accesses the online Formmail.pl script and works great but the (same) online version doesn't. Any thoughts? |
|
#3
|
|||
|
|||
|
Open FormMail in notpad (or whatever you're using) and comment out the following line:
Code:
&check_url; so it'll look like this: Code:
#&check_url; I seem to remember Matt's regex not allowing '-''s, (I just fixed the regex), but by commenting out that line it doesn't check the referer anyway, so that'll stop that problem |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > @referers and hyphens in FormMail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|