html - single qoute syntax printing in php -
this question has answer here:
- single quote inside double quote in php 3 answers
the below outputs
href="javascript:showbed(" a114:1')'
when want on form
href="javascript:showbed('a114:1')"
in order javascript work. had @ this site coudn't work gave up. perhaps give me hint on how corrent syntax be?
echo("<a href='javascript:showbed('" . $row['bed'] ."')' target='main' class='larmlink'>link</a>");
thanks =)
your output not output, is how interpreted (hint: don't @ parsed dom tree, @ source).
echo("<a href='javascript:showbed('" . $row['bed'] ."')' ...
==>
echo("<a href=\"javascript:showbed('" . $row['bed'] ."')\" ...
Comments
Post a Comment