Please help!
I've been making a PHP form for an online booking system.
It used to work just fine, although it would take about 2 hours to send the messages.
Now; it seems to have given up! With no notice!
Honestly, any help with this would be so appreciated; I'm fairly new to programming. I've been through it checking for mistakes and changing things, trying things out; but no joy so far. There's probably something well obvious, like a colon in the wrong place...
Here's the site link: www.kabeoke.com
And here's the PHP; as emailme6.php:
<?
function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
}
}
$select=$_POST['select'];
checkOK($select);
$name=$_POST['name'];
checkOK($name);
$email=$_POST['email'];
checkOK($email);
$confirmail=$_POST['confirmail'];
checkOK($confirmail);
$month=$_POST['month'];
checkOK($month);
$day=$_POST['day'];
checkOK($day);
$year=$_POST['year'];
checkOK($year);
$leaving=$_POST['leaving'];
checkOK($leaving);
$hour=$_POST['hour'];
checkOK($hour);
$minutes=$_POST['minutes'];
checkOK($minutes);
$ampm=$_POST['ampm'];
checkOK($ampm);
$going=$_POST['going'];
checkOK($going);
$flightnumber=$_POST['flightnumber'];
checkOK($flightnumber);
$pay=$_POST['pay'];
checkOK($pay);
$song=$_POST['song'];
checkOK($song);
$comments=$_POST['comments'];
checkOK($comments);
$message="Message Type: $select\n\nName: $name\n\nEmail: $email\n\n$confirmail\n\nDate of Journey: $month, $day, $year\n\nLeaving From: $leaving\n\nDeparture Time: $hour:$minutes $ampm\n\nGoing to: $going\n\nFlight Number: $flightnumber\n\nPayment Method: $pay\n\nSong Requests: $song\n\nComments: $comments";
header('Location:http://www.kabeoke.com');
if(mail("beepbeepyeah@kabeoke.com","Slap it - booking/enquiry from Kabeoke.com!",$message,"From: $email\n")) {
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>





Reply With Quote



Bookmarks