lucerias Posted October 30, 2006 Share Posted October 30, 2006 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 More sharing options...
trq Posted October 30, 2006 Share Posted October 30, 2006 Works here. Link to comment https://forums.phpfreaks.com/topic/25574-use-php-to-display-html-content/#findComment-116704 Share on other sites More sharing options...
scottybwoy Posted November 1, 2006 Share Posted November 1, 2006 I don't think you even need the <html> tags as php will put them in automatically Link to comment https://forums.phpfreaks.com/topic/25574-use-php-to-display-html-content/#findComment-117755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.