Hi there. I just arrived and I am absolutely new in PHP…
I use your Contact Form free download which is by the way great and easy to use, (many many thanks for sharing ).
I uploaded it to server and it works like a charm EXEPTED : I can not change the email from variable in order to get it right….
I received a test email sent from me and the variable $EmailFrom is of course not customize :? . How can I get it correctly filled up ?
Thank you for your help
Pls find under php code sample :
< ?php // CHANGE THE VARIABLES BELOW [b]$EmailFrom = "firstname.lastname@example.org";[color=#FF0000]//HERE MY IGNORANCE COMES AT ITS BEST[/color] $EmailTo = "email@example.com"; $Subject = "A message for you"; $Name = Trim(stripslashes($_POST['Name'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "n"; $Body .= "Email: "; $Body .= $Email; $Body .= "n"; $Body .= "Message: "; $Body .= $Message; $Body .= "n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>“);
// redirect to success page
// CHANGE THE URL BELOW TO YOUR “THANK YOU” PAGE