View previous topic :: View next topic |
Author |
Message |
amt167 -
Joined: 02 Jun 2002 Posts: 75
|
Posted: Sun Jan 25, 2004 7:27 pm Post subject: adding html to php |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Jan 26, 2004 2:19 am Post subject: |
|
|
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 |
|
|
|