View Full Version : Wrong with the php?

11-23-2010, 11:35 AM
Trying to fix a form. The form seems ok - I check it with http://validator.w3.org. When I click the submit buttom I'm redirekted to
http://www.jkbt.se/FormToEmail.php and the massage "You must enable referrer logging to use the form". I'm far from experienced in this, or I guess I would be able to fix it myself.
Someone who wants and can help me?

The form is at http://jkbt.se/ContactForm.html
The php code you find at http://jkbt.se/wrongphp.html

11-24-2010, 12:21 AM
thepart that causes that error is

if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
its a anti spam clause but i would say you could elete or comment this out, which would be better and try again

11-24-2010, 08:28 AM
Thank you. I will try it out.

11-30-2010, 11:02 AM
Did this work?

11-30-2010, 11:27 AM
Haven't tried yet. Will try it this week and let you know

12-01-2010, 09:38 AM
Thank you - it works!!!!! Great!
(But after submit click - I'm send , not to the page I want, but to another and I get 2 mails. But I works!!!!)
Great thanks. Up here it's -20C and quite beautiful, almost as beautiful as Bali - but colder. http://maps.google.com/maps?ll=63.162722,14.360968&z=15&t=h&hl=sv