Web Analytics Made Easy -
StatCounter Php echo html - CodingForum

Announcement

Collapse
No announcement yet.

Php echo html

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Php echo html

    Hi, I have this simple sendmail.php script:

    Code:
    <?php
    /*Here we are going to declare the variables*/
    $name = $_POST['name'];
    $email = $_POST['email'];
    $number = $_POST['number'];
    $message = $_POST['message'];
    //Save visitor name and entered message into one variable:
    $formcontent="Customer Name: $name\n\nEmail Address: $email\n\nPhone number: $number\n\nEnquiry: $message";
    $recipient = "[email protected]";
    $subject = "Contact Form";
    $mailheader = "From: $email";
    mail($recipient, $subject, $formcontent, $mailheader) or die("Failure!");
    echo "Thank You!";
    ?>
    Basically where is says echo "Thank You!" I need to add html how do I do this?

    Thanks in advance
    Danny

  • #2
    As you saw in the previous lesson, the PHP command echo is a means of outputting text to the web browser. Throughout your PHP career you will be using the echo command more than any other. So let's give it a solid perusal!
    Web Design Web design refers to the screen layout used in a site.

    Comment


    • #3
      all done now I figured it out

      Thanks
      Danny

      Comment

      Working...
      X