Assign variable to a block of html code
- From: php@xxxxxxxxxxxxxxxxxxx ("php mail")
- Date: Thu, 20 Dec 2007 10:38:20 +0700
Hi All,
Is it possible to assign variable to a block of html code ?
Something like this :
$myblokvar = "
<table width="487" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="487" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/bartitle_login.gif" alt="Login" width="475"
height="30" /></td>
<td> </td>
</tr>
<tr>
<td class="produk"><table width="100%" border="0" cellpadding="3"
cellspacing="2">
<tr>
<td class="katalog">
<?=$log_info?>
</td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td class="produk"> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
";
Although example above is not working, what I want to achieve is something
like that. Is it possible how can I do that ?
Regards,
Feris
- Follow-Ups:
- Re: [PHP] Assign variable to a block of html code
- From: "Daniel Brown"
- Re: Assign variable to a block of html code
- From: Darren Whitlen
- Re: [PHP] Assign variable to a block of html code
- From: Stephen Johnson
- Re: [PHP] Assign variable to a block of html code
- Prev by Date: Notice: Uninitialized string offset: 36 in xxxxxxxx
- Next by Date: Re: [PHP] Assign variable to a block of html code
- Previous by thread: Notice: Uninitialized string offset: 36 in xxxxxxxx
- Next by thread: Re: [PHP] Assign variable to a block of html code
- Index(es):