Trying to echo " in html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Perfidus
Forum Contributor
Posts: 114
Joined: Sun Nov 02, 2003 9:54 pm

Trying to echo " in html

Post by Perfidus »

Is it possible to echo " somehow?
I need to render a script that wont work if there are no real double quotes there and I don't know how to!!

<? echo "<a href='#' onClick='MM_openBrWindow(...........

The onClick event doesn't recognise the orders if they are not double quoted ""

:(
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

So use echo '<a href="#" onClick="MM_openBrWindow( ..... ';
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

or "<a href=\"#\" onClick=\"MM_openBrWindow( .....";
Post Reply