adding html to php

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


Joined: 02 Jun 2002
Posts: 75

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

i am trying to use this below but i keep getting error 200


<?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
amt167
-


Joined: 02 Jun 2002
Posts: 75

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

sorry shouldve mentioned maybe i got the html in the wrong place
Back to top View user's profile Send private message Send e-mail
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Sun Jan 25, 2004 7:58 pm    Post subject: Reply with quote

Code:

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

$text = <<<END
<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>
<div align="left">

</div>
END;

$title = "fred";

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

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


Joined: 24 Jan 2004
Posts: 11
Location: Chicago

PostPosted: Sun Jan 25, 2004 11:54 pm    Post subject: Reply with quote

i use the file type "php" but my code or as in "view source" is pure <HTML> there is not <?php in it, yet it still works with .php . see for yourself at http://energy96.no-ip.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jtc970
-


Joined: 24 Mar 2003
Posts: 172

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

php runs on the server before it sends the htm to the user...
you should never see php code in view source
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP 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