Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Php echo html

  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 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 = "dannyhayes16@hotmail.co.uk";
    $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
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    New Coder
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 Posts
    all done now I figured it out

    Thanks
    Danny


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •