Jump to content

help with "


purplemonkey

Recommended Posts

how are you suposed to use a " in a line of code?

example
<div class="menutitle" onclick="SwitchMenu('sub1')">Site Menu</div>

in PHP would be
echo "<div class="menutitle" onclick="SwitchMenu('sub1')">Site Menu</div>"
and this would be invalid.

but if I did this
echo "<div class='menutitle' onclick='SwitchMenu('sub1')'>Site Menu</div>"
then this wouldn't work

please help,I'm working on this code right now.
cheers like
Link to comment
https://forums.phpfreaks.com/topic/14985-help-with/
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.