Jump to content

[PHP] placing HTML ' sign inside PHP


latino.ad7

Recommended Posts

How do I put ' sign of HTML code inside PHP code?

 

example:

in whatever.php I can put:

<?php

echo '<table><tr><td>whatever</td></tr></table>';

?>

 

and HTML will work from "inside" of PHP.

 

Now I need to get ' sign. Here is HTML code:

<A HREF="aaa.jpg" onMouseOver = "rollover('dl3')" onMouseOut  = "rollout('dl3')"><IMG SRC="bbb.jpg" NAME="dl3" ALT="Home Page" BORDER=0></A>

 

So notice there are ' signs here. How do I include the above HTML code inside echo ''; ???

Link to comment
https://forums.phpfreaks.com/topic/191818-php-placing-html-sign-inside-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.