Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Sponsored Reviews   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-28-2007, 04:24 AM   #1 (permalink)
Inactive
 
Join Date: 03-28-07
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

foxcomputers is liked by many
Unhappy Formmail.cgi help needed aaargh !!

If anyone could help with this I'd be really grateful !!

I've a little experience of using formmail as a php, and have successfully used this without any issues.

However the ISP which is hosting the website I'm working on requires a cgi/pl version of formmail which I can't get working - with a bad referer error.

The form is submitted with the following values in it;

<form id="form_1" name="form_1" action="/cgi-bin/torquemail.pl" method="post" target="_self" enctype="multipart/form-data">
<INPUT type="hidden" value="web@master@torquervt.co.uk" name="recipient">
<INPUT type="hidden" value="REMOTE_HOST,HTTP_USER_AGENT,REMOTE_ADDR" name="env_report">
<INPUT type="hidden" value="SERVICE CLUB APPLICATION" name="subject">

I've edited the email address above with an additional @ in the name so it doesn't get picked up for spam.

The formmail has the following coding;

@referers = ('torquervt.co.uk');

@recipients = ('^webmaster\@torquervt\.co.uk');

When I submit the form from the website, I get the bad referer error, I can't understand why, can anyone please help, before I lose all my hair
Thanks a lot
foxcomputers is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-28-2007, 09:43 AM   #2 (permalink)
Inactive
 
jeet's Avatar
 
Join Date: 03-04-06
Posts: 181
iTrader: 0 / 0%
jeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the roughjeet is a jewel in the rough
I don't remember cgi very well now, but try changing this line:

@recipients = ('^webmaster\@torquervt\.co.uk');

Change to:
@recipients = ('^webmaster\@torquervt.co.uk');

To protect from spam, why do you want to put the email id in the HTML anyway, when you can just set a variable in the cgi file itself?
Bye
jeet is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2007, 12:33 AM   #3 (permalink)
Inactive
 
Join Date: 03-28-07
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

foxcomputers is liked by many
Smile Solved !

I switched the formmail to the one provided by nms and this has now configured correctly, still not sure why the other script wouldn't run - but hey its fixed now !
foxcomputers is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
formmail error 8000900F cimmeron Coding Forum 3 10-10-2006 09:49 AM
formmail with ASP DaveyBoy Coding Forum 8 03-03-2006 01:27 PM
formmail pcs802 Coding Forum 4 06-04-2004 05:05 AM
FormMail wbstein Coding Forum 12 05-19-2004 07:52 AM
Formmail data to a .CSV file farns Coding Forum 13 10-22-2003 12:42 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:33 AM.
© Copyright 2008 V7 Inc