Quotation marks in value of html tag attribute problem
<?php
$myname = 'my name have quotation marks " <- here';
?&g开发者_如何学Got;
And i try to:
<input type="text" name="newnameproposition[<?php echo $myname ?>]">
And html have a little problem becouse of:
name="newnameproposition[my name have quotation marks " <- here]"
Can anybody had this kind of problem?
Take a look at htmlentities()
精彩评论