那是我的配置问题吗?不解.....
我用iis服务器
jakey9826(无眠) 请指点一下
我用iis服务器
jakey9826(无眠) 请指点一下
解决方案 »
- 苹果push服务效率以及限制请教
- PHP 字符串问题
- 在PHP中如何调用存储过程并得到返回值。
- php怎样使一篇日志原样输出
- 大家有没有遇到过smarty这种问题
- 菜鸟问题:新窗口问题
- Failed opening required './include/common.php' ,改成$_SERVER["DOCUMENT_ROOT"].'/include/common.php' 才行
- 在redhat7.2下用系统自带的apache server运行php不能连接mysql?急!
- file("url")时的问题 ---- 进来
- php判断文件名是用那个函数
- ********用Get接不到URL链接上的参数,苦闷中,大家帮我看看*********
- php的socket如何传递对象呢?
error_reporting = E_ALL & ~E_NOTICE //修改这行,重新启动IIS
或者是在php的文件前面
加上error_reporting (E_ALL ^ E_NOTICE);
这行,看有没有错误
现在这个who_are_you_advanced.php程序的参数传不到you_are_adavanced.php中去.下面是
两个程序代码:
//who_are_you_advanced.php<html>
<head>
<title>who are you advanced!</title>
</head>
<body>
<form action="you_are_advanced.php" method="POST">
please fill in the following fields:<br/>
<?php
$favorite_language="PHP";
?>
<b>first name:</b>
<input type="text" name="first" value="<?php print($first); ?>" size="15"><br/>
<b>last name:</b>
<input type="text" name="last" value="<?php print($last);?>" size="15"><br/>
<b>favorite programming language</b>
<input type="text" name="favorite_language" value="<?php print($favorite_language);?>" size="15"><br/>
<input type="submit" value="go!" size="15">
</form>
</body>
</html>
//you_are_advanced.php<html>
<head>
<title>you are avanced........</title>
</head>
<body>
hello,<b><?php print($first . " " . $last); ?></b>
your favorite language is
<?php print($favorite_language);?>
<?php
$query_string="";
$query_string.="?first=".urlencode($first);
$query_string.="&last=".urlencode($last);
$query_string.="&favorite_language".urlencode($favorite_language);
?>
<br/>
<a href="who_are_you_advanced.php<?php print($query_string)?>">
back to who are you advanced
</a>
</body>
</html>
自php4.1.0以后已经不适用了。因为出于对网站的安全考虑已经将php.ini中的register_globals=on改为register_globals=off了,并不建议打开。所以你的书过时了!get方式传递的变量用$_GET[变量名]访问
post方式传递的变量用$_POST[变量名]访问
url方式传递的变量属于get方式