Solarpitch Posted June 24, 2008 Share Posted June 24, 2008 Hi, The following line of code will not work when it is called this way but works fine if put into standard HTML. I think the reason is something to do with using escape. '\ '/ or something, not quite sure how to use it <?php ... $myinfo[0] .= "<td id='slot_bk' ONMOUSEOVER='popup('Link description here','yellow')'; ONMOUSEOUT='kill()'>{$time}<br>Slots:$t</td>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/111660-solved-escape-question/ Share on other sites More sharing options...
kenrbnsn Posted June 24, 2008 Share Posted June 24, 2008 It's highly unlikely that this will work fine in HTML since you have single quotes surrounding single quotes. Try this: <?php $myinfo[0] .= "<td id='slot_bk' ONMOUSEOVER=\"popup('Link description here','yellow')\"; ONMOUSEOUT='kill()'>$time<br>Slots:$t</td>"; ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/111660-solved-escape-question/#findComment-573149 Share on other sites More sharing options...
Solarpitch Posted June 24, 2008 Author Share Posted June 24, 2008 Thanks for that Ken, that works great! ps: I didnt have the single quotes surrounding single quotes when I was using it in a HTML context. Quote Link to comment https://forums.phpfreaks.com/topic/111660-solved-escape-question/#findComment-573152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.