rofl90 Posted December 18, 2006 Share Posted December 18, 2006 Could you tell me whats wrong within this PHP for sending my form from:[code]<?php// Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you // retain the credit link // get posted data into local variables$EmailFrom = "contact@prowebdesigns.co.uk";$EmailTo = "contact@prowebdesigns.co.uk";$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\">";}?>[/code]tell me if you need the HTML aswell Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted December 18, 2006 Share Posted December 18, 2006 Perhaps you could tell us what the problem is?RegardsHuggie Quote Link to comment Share on other sites More sharing options...
rofl90 Posted December 18, 2006 Author Share Posted December 18, 2006 i click sned it redirects to ok.htm perfectly - no email :*( Quote Link to comment Share on other sites More sharing options...
SharkBait Posted December 18, 2006 Share Posted December 18, 2006 Do they have a spam filter in place? Perhaps it is being caught?Do you have shell access to your webserver? You can check to see if the mail was successful via the logs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.