开发者

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()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜