用的是zend development 5.50 这么说吧: html页面: <form action="huhu.php" method="post"> Enter your name: <input type="text" name="name" /> Enter your age: <input type="text" name="age" /> <input type="submit" /> </form>php页面:fish <?php echo $_POST["name"]; ?>.<br /> You are <?php echo $_POST["age"]; ?> years old!结果是blankhuhu.php,而不是 fish ... you are ...就是跳转不了,用别的编译器就没有问题,所以说和语言无关,是我在那个地方配置的可能有问题,挺急的,以前使用.net的,后来要移植,就用php了!
IDE环境呀,没用过. 直接用浏览器没有问题?
<form action="blankhuhu.php" method="post"> Enter your name: <input type="text" name="name" /> Enter your age: <input type="text" name="age" /> <input type="submit" /> </form> blankhuhu.php页面: fish <?php echo $_POST["name"]; ?>. <br /> You are <?php echo $_POST["age"]; ?> years old! 最好是: $name=$_POST['name']; $age=$_POST['age']; 然后: fish <?php echo $name; ?> <br> You are <?php echo $age; ?> years old!
这么说吧:
html页面:
<form action="huhu.php" method="post">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>php页面:fish <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!结果是blankhuhu.php,而不是 fish ... you are ...就是跳转不了,用别的编译器就没有问题,所以说和语言无关,是我在那个地方配置的可能有问题,挺急的,以前使用.net的,后来要移植,就用php了!
直接用浏览器没有问题?
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form> blankhuhu.php页面: fish <?php echo $_POST["name"]; ?>. <br />
You are <?php echo $_POST["age"]; ?> years old!
最好是:
$name=$_POST['name'];
$age=$_POST['age'];
然后:
fish <?php echo $name; ?> <br>
You are <?php echo $age; ?> years old!
PHP是脚本语言,顺序执行,以前就是一直文本工具来.PHP的集成编译环境,zend studio,虽然在用,但没有用它的集成功能,呵呵.总是觉得不如直接用浏览器来的爽一些,可能是习惯吧.
<form action="huhu.php" method="post">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>blank huhu.php页面:
应该是这个意思,呵呵
php.ini
里面
short_open_tag = on至于表单提交为什么会提交到那么奇怪的地方,还真没遇到过
先安装个执行环境吧. window+php+apache+mysql
linux + mysql + php + apache
extension=php_curl.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo.dll
extension=php_pgsql.dll
extension=php_soap.dll
extension=php_sqlite.dll
zend_extension_ts=d:\Program Files\Zend\ZendStudio-5.5.0\lib\php5\ZendDebuggerLocal.dll
zend_debugger.allow_hosts=192.168.2.106/32
session.save_path=d:\Program Files\Zend\ZendStudio-5.5.0\tmp
include_path = d:\Program Files\Zend\ZendStudio-5.5.0\bin\ZendFramework\library;.
没有找到阿!!呵呵
这些东西我全都有,apache业配置成功了
1 apache
安装完apache以后,启动.在浏览器上运行 http://localhost/ 看到欢迎界面表示apache安装成功2 php
在apache的默认的目录,也就是httpd.conf里面的documentRoot设置的目录下,建立一个test.php
<?php phpinfo(); ?>
如果在浏览器上运行出来的是源码,表明php没有安装成功.打开php安装目录下的install.txt,照着配置一下.或者google一下也成.
配置完了以后,再重复上面的步骤.
跳转不了这和你所引用的路径有关系