Jump to content

Archived

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

lucerias

Use php to display HTML content

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>

Share this post


Link to post
Share on other sites

×

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.