Jump to content

Use php to display HTML content


lucerias

Recommended Posts

The following message is included after a class

$message = "
<html>
<head>
    <title>HTML message</title>
</head>
<body>
";

$message .= '
</body>
</html>
';

echo $message;

Suppose it should be well structured according to HTML but the output display is the following

<html>
<head>
    <title>HTML message </title>
</head>


</html>
Link to comment
https://forums.phpfreaks.com/topic/25574-use-php-to-display-html-content/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.