简体   繁体   English

html标记属性问题值的引号

[英]Quotation marks in value of html tag attribute problem

<?php    
$myname = 'my name have quotation marks " <- here';
?>

And i try to: 我试着:

<input type="text" name="newnameproposition[<?php echo $myname ?>]">

And html have a little problem becouse of: 由于以下原因,html有一点问题:

name="newnameproposition[my name have quotation marks " <- here]"

Can anybody had this kind of problem? 任何人都可以遇到这种问题吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM