I'm probably overlooking something REALLY simple.
What I want to do is create a table inside an echo statement which is clickable as a hyperlink.
So what I've come up with is:
Code: Select all
echo "
<table id='test' border='1' cellspacing='0' cellpadding='0' onclick="location='load.php'">
<tr>
<td></td>
</tr>
</table>";
The onclick needs the quotation marks but I can't use these inside an echo statement for obvious reasons. I've tried using apostrophes instead but this doesn't work. I've also tried defining the onclick line as a string and calling it but again, the quotation marks are needed.
Any ideas?
KD.