$ symbol in print function?
Posted: Sat Nov 20, 2004 11:22 pm
hi guys, i have this print function that i need to have included in my site, all works fine, but when i go to add the $ (dollar sysmbol) in in front of the shipping for example,
the shipping amount and the $ dollar sign do not show up.
if however i do not have the $ dollar sign in front of the shipping it does show up.
for example how i have it at the moment.
is this $ dollar sign not allowed to be in the print function can someone please help or explain? thanx!
Code: Select all
<td colspan="2" valign="top">${$shipping}</td>if however i do not have the $ dollar sign in front of the shipping it does show up.
for example how i have it at the moment.
Code: Select all
print <<<HTMLEOF
<tr>
<td height="30" colspan="3" valign="middle"><!--DWLayoutEmptyCell--> </td>
<td colspan="2" valign="top"><strong>Freight:</strong> </td>
<td colspan="2" valign="top">{$shipping}</td>
</tr>
<tr>
<td height="30" colspan="3" valign="top"><!--DWLayoutEmptyCell--> </td>
<td colspan="2" valign="top" align="left"><strong>Total: </strong></td>
<td colspan="2" valign="top">{$totalCost}</td>
</tr>
HTMLEOF;