Php A<;textarea>;代码

Php A<;textarea>;代码,php,textarea,Php,Textarea,我希望能够让用户提供他们自己的代码 首先,我已经有了“$userid”的值: $usrid = mysql_result($res, 0, "id"); 在一个代码字符串之后,让它接受userid$amount: $string = "<!--cod Start--> <iframe src="http://mysite.ir/code.php?id=$usrid" name="Noruz" width=250 height=250"></iframe> &

我希望能够让用户提供他们自己的代码

首先,我已经有了“$userid”的值:

$usrid = mysql_result($res, 0, "id");
在一个代码字符串之后,让它接受userid$amount:

$string = "<!--cod Start-->
<iframe src="http://mysite.ir/code.php?id=$usrid" name="Noruz" width=250 height=250"></iframe>
<!--cod END--> ";
$string=”
哈米德,
应该是:

$string = '<!--cod Start-->
<iframe src="http://mysite.ir/code.php?id='. $usrid .'" name="Noruz" width=250 height=250"></iframe>
<!--cod END--> ';
$string='1!'
$string = '<!--cod Start-->
<iframe src="http://mysite.ir/code.php?id='. $usrid .'" name="Noruz" width=250 height=250"></iframe>
<!--cod END--> ';