Jump to content


New Members
  • Posts

  • Joined

  • Last visited

ignatius's Achievements


Newbie (1/5)



  1. Thank you for that clarification. I will work on it some more when I have more time.
  2. Ok. How do I do what you asked me to? The results of the form.php are "Error." That's all that comes up on the screen.
  3. Echo was a weird word to ask to see the results of the code. To me at least.
  4. I apologize. I'm a newb to PHP. This is all above my head.
  5. Yes. "$email" is the from address.
  6. I was being literal. The error message is "Error."
  7. Hello, I have a PHP script intended to send an e-mail to someone. It works fine and everything, but throws an "Error" message. Even though it works. <?php $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; $mailheader = "From:".$name."<".$email.">\r\n"; $recipient = "some@emailaddress.net"; mail($recipient, $subject, $message, $mailheader) or die("Error!"); echo' <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contact form</title> <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins&display=swap" rel="stylesheet"> <link rel="stylesheet" href="style.css"> </head> </html> ';?>
  • 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.