Jump to content


Photo

Use php to display HTML content


  • Please log in to reply
2 replies to this topic

#1 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 30 October 2006 - 01:04 PM

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>

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 30 October 2006 - 01:20 PM

Works here.

#3 scottybwoy

scottybwoy
  • Members
  • PipPipPip
  • Advanced Member
  • 532 posts
  • LocationUK

Posted 01 November 2006 - 10:06 AM

I don't think you even need the <html> tags as php will put them in automatically




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users