View previous topic :: View next topic |
Author |
Message |
amt167 -
Joined: 02 Jun 2002 Posts: 75
|
Posted: Sun Jan 25, 2004 5:47 pm Post subject: adding html to php |
|
|
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 |
|
|
amt167 -
Joined: 02 Jun 2002 Posts: 75
|
Posted: Sun Jan 25, 2004 5:48 pm Post subject: adding html to php |
|
|
sorry shouldve mentioned maybe i got the html in the wrong place |
|
Back to top |
|
|
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Sun Jan 25, 2004 7:58 pm Post subject: |
|
|
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 |
|
|
cfm -
Joined: 24 Jan 2004 Posts: 11 Location: Chicago
|
Posted: Sun Jan 25, 2004 11:54 pm Post subject: |
|
|
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 |
|
|
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Mon Jan 26, 2004 2:30 am Post subject: |
|
|
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 |
|
|
|