PDA

View Full Version : WHATS WRONG WITH ITTT!



Hypertext
18-12-2006, 07:55 PM
Please any suggestions on whats wrong with my coding




<?php
$EmailFrom = "[email protected]";
$EmailTo = "[email protected]";
$Subject = "Quote Request";
$Name = Trim(stripslashes($_POST['Name']));
$Email = Trim(stripslashes($_POST['Email']));
$Details = Trim(stripslashes($_POST['Details']));
// validation
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "Details: ";
$Body .= $Details;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>

tekni
18-12-2006, 07:57 PM
didnt u post this about an hour ago?

Edited by J1MI (Forum Moderator) - Please stay ontopic.

[N]
18-12-2006, 11:58 PM
im not quite sure but it looks fine.

Blinger1
19-12-2006, 12:36 AM
what error comes up?

Hypertext
19-12-2006, 08:50 PM
nothing comes up ;|

Want to hide these adverts? Register an account for free!