html - single qoute syntax printing in php -


this question has answer here:

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -