Jump to content

I need some help creating a send mail php script....


kopusx

Recommended Posts

Ok this is the code I have so far, but it does not work and i am not sure where is my error

what I have is a form that has name, email address, and message, this then is taken when they click the send mail button. can anyone tell me why it does not work?

 

<?phpif (empty($name) || empty($subject) || empty($text))    $email = false;    else $email = '[email protected]';}@extract($_POST);$name = stripslashes($name);$subject = stripslashes($subject);$text = stripslashes($text);mail('[email protected]',$subject,$text,"From: $name <$email>");header("location:contactanos.php");if (empty($name) || empty($subject) || empty($text)) {    header("location:incomplete.php");  }  else {    header( "Location:complete.php" );  }?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.