Hello Freaks!!
I have a question that has been boggling my mind for sometime, but never looked into it. Basically what I have been doing is trying to send HTML info through a variable, but everytime I do it, I have to select the HTML and do a FIND: " & REPLACE WITH: \" in Dreamweaver.
It was fun in the beginning, but now it seems to be a pain, and wish to just do a simple
include("../htmlinfo.php");
But when I do that of course, the variables that I am trying to pass through do not get executed. I am basically doing this for HTML Email and stuff.
So to recap, I want to turn this:
<?php
$content = "<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Untitled Document</title>
</head>
<body>
<table width=\"654\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>CONTACT</td>
<td> </td>
</tr>
<tr>
<td align=\"right\">Name:</td>
<td> </td>
</tr>
<tr>
<td align=\"right\">Number:</td>
<td> </td>
</tr>
<tr>
<td align=\"right\">Email:</td>
<td> </td>
</tr>
<tr>
<td align=\"right\">City:</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>";
?>
TO THIS:
<?php
$content = include("../htmlform.inc.php");
?>
The reason why I want to make this simple is because if I change something in the HTML, I have to repaste the code, and do the FIND and REPLACE method again. Just does not seem too efficient.
Any suggestions?
Thank you!
Olie