Use escape character which is a backslash (\)
<HTML>
<BODY>
<a href="delete.php" OnClick="return confirm('blah blah');"> Click here </a>
<?PHP
ECHO "<a href=\"delete.php\" OnClick=\"return confirm('blah blah');\"> Click here </a>";
?>
</BODY>
</HTML>
sikka_varun
Junior Poster in Training
94 posts since Dec 2008
Reputation Points: 11
Solved Threads: 12
you can also use single quotes to surround the text without have to escape the double quotes inside.
ex.
echo '<a href="delete.php" OnClick="return confirm('blah blah');"> Click here </a>';
just thought i would point that out.
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195
sikka_varun
Junior Poster in Training
94 posts since Dec 2008
Reputation Points: 11
Solved Threads: 12
sorry, forgot to escape the single quotes. thanks for pointing that out.
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195