TUTORIALS » PHP / MySQL » PHP essentials (guided tutorials)Starting with PHPPage 2 of 2Sending HTML code using echoMaybe you already noticed it in the last exercise; the strings (text) you send to the browser using PHP can contain HTML tags. These tags will be processed by the browser as if they were contained in any regular .html file.Complete the next exercise and see it for yourself.
Q. What is the source code of the page displayed by your browser? You just sent four lines of HTML code using PHP from your server and your browser took it as if it were a regular .html file. PHP is so cool! Now you are ready for the next tutorial – Comments in PHP.
|
|