我是新手,麻烦帮看看有代码! ="<?php echo $PHP_SELF; ?>" 试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head></head><body><?phpif (!empty($_POST['name'])) {echo "Greetings,{$_POST['name']}},and welcome."?><from action="<?php $PHP_SELF; ?>" method="post">enter your name : <input type="text" name="name"/><input type="submit"/></from></body></html> 《------是22 lineParsing Error: PHPDocument1 line 22 - parse error, unexpected $改了,还是不行,问题是一样的,这个书上的例子,晕呀!! echo "Greetings,{$_post['name']}},and welcome."这句改成echo "Greetings,{$_post['name']},and welcome.";} 仔细看了一下,错误还不少呢帮你改了下,测试通过<html><head></head><body><?phpif (!empty($_POST['name'])) { echo "Greetings,".$_POST['name'].",and welcome.";}?><form action="<?echo $PHP_SELF; ?>" method="post">enter your name : <input type="text" name="name"><input type="submit"></form></body></html> 用php的curl模拟登录一个网站 求如何在文本框输入数据插入到数据库中 怎么把Discuz!X中的登录功能提取出来 正则替换问题 PHP中的SQL语句占位符的使用是否需要MYSQLI的支持 求救遇上大麻烦了,解决立刻给分 如何获取下拉列框中,循环显示的某个特定的值? 求一条SQL语句 谁配置过 resin+apache+mysql mysql中缺少mysql.func表? 获取文本框数据时产生的错误,请各位指教 几个小问题?
<?php
if (!empty($_POST['name'])) {
echo "Greetings,{$_POST['name']}},and welcome."
?><from action="<?php $PHP_SELF; ?>" method="post">
enter your name : <input type="text" name="name"/>
<input type="submit"/>
</from>
</body>
</html> 《------是22 line
Parsing Error: PHPDocument1 line 22 - parse error, unexpected $
改了,还是不行,问题是一样的,这个书上的例子,晕呀!!
这句改成
echo "Greetings,{$_post['name']},and welcome.";}
帮你改了下,测试通过<html><head>
</head><body>
<?php
if (!empty($_POST['name'])) {
echo "Greetings,".$_POST['name'].",and welcome.";
}
?><form action="<?echo $PHP_SELF; ?>" method="post">
enter your name : <input type="text" name="name">
<input type="submit">
</form>
</body>
</html>