All pastes #348868 Raw Edit

Someone

public php v1 · immutable
·published 2007-02-10 11:59 UTC
rendered paste body
<?php// Copyright Marcus Hughes$EmailFrom = "contact@youthcast.co.uk";$EmailTo = "Coley212@aol.com";$Subject = "YouthCast Contact!";$Name = Trim(stripslashes($_POST['Name'])); $EMailaddress = Trim(stripslashes($_POST['E-Mailaddress'])); $Age = Trim(stripslashes($_POST['Age'])); $Reasonforemail = Trim(stripslashes($_POST['Reasonforemail'])); $Comments = Trim(stripslashes($_POST['Comments'])); $validationOK=true;if (!$validationOK) {  print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";  exit;}$Body = "";$Body .= "Contact users name: ";$Body .= $Name;$Body .= "\n";$Body .= "Users Email address: ";$Body .= $EMailaddress;$Body .= "\n";$Body .= "Users Age: ";$Body .= $Age;$Body .= "\n";$Body .= "Reason for the Email: ";$Body .= $Reasonforemail;$Body .= "\n";$Body .= "Users comments: ";$Body .= $Comments;$Body .= "\n";$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");if ($success){  print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">";}else{  print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";}?>