Sorry bpat1434 - I'm new to this, thought something went wrong with the first topic so reposted it.
bpat1434;10880476 wrote:If your post doesn't show up immediately, don't go and try and repost the same topic. It will be reviewed by a mod first.
I'm not immediately seeing anything evident; however, what is the exact error you're getting? Is the php above "/www/address" or is there a real script name with that?
Give us a direct copy & paste of the entire file inside [noparse]
[/noparse] tags and a copy & paste of the full and exact error code. Then we'll go from there.
This is the contact form.
http://www.eamonsinnott.com/Gerkros2008/testing/Gerkros_Contact.html
Exact error is as follows
Parse error: parse error in /www/www.eamonsinnott.com/Gerkros2008/testing/contact.php on line 1
Complete php code is as follows.
<?php
// Pick up the form data and assign it to variables
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
// Build the email (replace the address in the $to section with your own)
$to = 'eoconnell@sinnott-design.com';
$subject = "Contact / Comments Form - Client";
$message = "$name said: $message";
$headers = "From: $email";
// Send the mail using PHPs mail() function
mail("$to, $subject, $message, $email");
// Redirect
header("Location: contact_thanks.html");
?>
Please let me know if you need anything else, appreciate you looking into this. Been tearing my hair out for the last 48 hours over it.