SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 17th, 2001, 06:46 AM
Robert12345 Robert12345 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 65 Robert12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 38 sec
Reputation Power: 8
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

Reply With Quote
  #2  
Old February 17th, 2001, 08:07 AM
Robert12345 Robert12345 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 65 Robert12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 38 sec
Reputation Power: 8
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?

Reply With Quote
  #3  
Old February 17th, 2001, 01:26 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > @referers and hyphens in FormMail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway