<?php $i = "i loce yiou";?>
<input type = "text" name = "try" value = "<?echo $i;?>">你没有给value=""
加引号,加上就好了。我也不知道为什么
<input type = "text" name = "try" value = "<?echo $i;?>">你没有给value=""
加引号,加上就好了。我也不知道为什么
解决方案 »
- PHP如何发邮件?
- php codeigniter的模型加载的时候的问题
- 如何用链接调用另一个页面上的函数
- PHP socket带验证的问题
- 今天发现一个有趣的事情,大家帮我看看是怎么回事。
- MYSQL数据库连接问题: MySQL 4.1+ using the old insecure authentication
- 招聘项目经理\PHP程序员\美工...地点:北京
- 这样的情况下,数据能否截取?
- SESSION 中怎样存储数组。
- PHP连接https SOAP Webservice问题,请高手进。
- 现在的大型网站打开后,会在地址栏里嫁了个该网站的logo,这个是怎么做的?
- 新浪游戏 玩家社区 招聘网站开发工程师
<input type = "text" name = "try" value = "i loce yiou">
<input type = "text" name = "try" value = i loce yiou>就知道了
<input type = "text" name = "try" value =i loce yiou>
也就等于
<input type = "text" name = "try" value =i>所以你只能得到i,而loce,yiou都视为文本框“属性”。可以用单引号或双引号,把<?echo $i;?>括起来就可以了