Jump to content

parsing PHP


Recommended Posts

For PHP in HTML pages I found it easiest to do this:

 

 

<?PHP
$title ="titlegoeshere";
$header ="header,ifany,goeshere. leaveblankfornone";
$content1 = "insert some cool content hear";
$content2 ="sameasabove";
etc.
etc.


echo "<html><head>$header<title>$title</title></header><body bgcolor='#000000'>//its important you use ' not  "   because otherwise you will get a php parse error

<p>$conent</p>
<p>$content2</p>
etc.
etc.
</body>
</html>


?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...