开发者

Quotation marks in value of html tag attribute problem

开发者 https://www.devze.com 2023-02-09 15:09 出处:网络
<?php $myname = \'my name have quotation marks \" <- here\'; ?&g开发者_如何学Got; And i try to:
<?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

精彩评论

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