PDA

View Full Version : Wrong with the php?


mikaelwester
11-23-2010, 12:35 PM
Hello
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

edbr
11-24-2010, 01: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

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

davidj
11-30-2010, 12:02 PM
Did this work?

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

mikaelwester
12-01-2010, 10: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