adding html to php

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
amt167
-


Joined: 02 Jun 2002
Posts: 75

PostPosted: Sun Jan 25, 2004 7:27 pm    Post subject: adding html to php Reply with quote

i am trying to use this below but i keep getting error 200 maybe i have the html in the wrong place


<?php
require_once("class2.php");
require_once(HEADERF);

$text = <HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder V6.0.0 Trial for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="IBM:HPB-Input-Mode" content="mode/flm">
<TITLE></TITLE>
</HEAD>
<BODY bgcolor="#20c6e3"></BODY>
</HTML>"/
<div align=\"left\">

</div>
";

$title = "fred";

$ns -> tablerender($title, $text);

require_once(FOOTERF);
?>
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Jan 26, 2004 2:19 am    Post subject: Reply with quote

To add HTML in a PHP .php file , just add it like
Code:

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>

<?php //Your PHP Content ?>

</BODY>
</HTML>


Notice How I put the HTML around the PHP tags , thats the
proper way to add HTML to a PHP File 8)
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group