View Full Version : Php echo html

08-27-2011, 06:01 PM
Hi, I have this simple sendmail.php script:

/*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

join me
08-27-2011, 06:12 PM
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 (http://www.absolutewebdesign.co.uk/) Web design refers to the screen layout used in a site.

08-27-2011, 07:18 PM
all done now I figured it out :thumbsup: