Wampserver 2.0和PHP [英] Wampserver 2.0 and php
问题描述
我刚刚开始使用php,我正在尝试使用wampserver!
我正在使用wamperver 2,PHP 5.30
$ 7 $ b在Windows 7上
我已经正确安装了wampserver并且localhost似乎正常工作。
当我尝试这个脚本:
<?php echo" something" ?>
它有效!
但是当我尝试将信息从html文件发送到php文件时,varibel不会抛出。我收到此消息:注意:未定义的变量:第3行的C:\ wamp \ www.hp \ result.php中的名称
请各位帮助我:(
Hi,
I′ve just started using php, and i′m trying to make it work with wampserver!
I′m using wamperver 2 , PHP 5.30
on windows 7
I have installed wampserver correctly and the localhost seems to work.
When i try this script:
<?php echo "something" ?>
It works!
But when I try to send information from a html file to php file, the varibel doesn''t go throw. I get this message: Notice: Undefined variable: name in C:\wamp\www\php\results.php on line 3
Please guys help me out :(
推荐答案
表单使用方法你可以在< form>元素的属性中看到post,所以,你会在PHP中的
The form uses the method "post," as you can see in the <form> element''s attributes. So, you will find the values from the form in the
_POST超全局数组中找到表格中的值。 。
_POST superglobal array in PHP.
感谢您的帮助kovik =)
现在没有错误,但浏览器页面是空的!它没有显示任何东西......不知道为什么!
Thanks for the help kovik =)
Now there are no errors, but the browser page is emty! It doesn′t show anything...don′t know why!
这篇关于Wampserver 2.0和PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!