Hello all.
I installed XAMPP 1.6.3a so that I could test out contact forms without having to upload the pages online. The installation went perfectly, but I still can’t run PHP scripts offline. I’m sure it’s something obvious that I can’t see, so I was wondering if anyone here could tell me what I need to do to make it work. Currently, this is what pops up if I hit ‘submit’ offline. ?
“; exit; } // prepare email body text $Body = “”; $Body .= “Name: “; $Body .= $Name; $Body .= “n”; $Body .= “n”; $Body .= “Organization: “; $Body .= $Organization; $Body .= “n”; $Body .= “n”; $Body .= “Website: “; $Body .= $Website; $Body .= “n”; $Body .= “n”; $Body .= “Comments: “; $Body .= “n”; $Body .= $Comments; $Body .= “n”; // send email $success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>”); // redirect to success page if ($success){ print “”; } else{ print “”; } ?>
these are the affected pages, by the way, if anyone wanted to look at the code:
[url]http://aicasdaiga.com/contact.html
[url]http://aicasdaiga.com/contact.php
The forms work fine online, though. I’m running Windows XP SP2, Firefox 2.0.0.3. Thanks in advance!