This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请问这里有谁熟悉PHP网站编程?本菜鸟有事请教。。。江湖救急啊。。。谢谢。。。
-polareskimo(Inuit);
2004-12-3
(#2012190@0)
-
UP!
-polareskimo(Inuit);
2004-12-3
(#2012209@0)
-
Who developed this forum ?
-guestagain(guest again);
2004-12-3
(#2012210@0)
-
Cannot depend on the boss....I'm a small potato.....
-polareskimo(Inuit);
2004-12-3
(#2012235@0)
-
why not post your question here, there are a bunch of 闲人 here.
-xanada(㊣流水);
2004-12-3
(#2012243@0)
-
谢谢。问题在里面。太菜了,不要笑话俺哈。。。how to get the information users input in the HTML FORM, like in a procedure of new user registration? I used $_POST / $_GET, but didn't work, even for the exact same sample in the online manual. Too little explaination about these functions and the interaction between HTML and PHP in that book. How do I use them? And how can I get the input information then?
-polareskimo(Inuit);
2004-12-3
{362}
(#2012300@0)
-
give you an example.page1.html
<form action=page2.php method=post>
<input type=text name=user>
<input type=submit value='Go page2'>
</form>
page2.php
<?php
echo $_POST['user'];
?>
当浏览PAGE1.HTML时,输入USER, 点按'GO PAGE2'按钮, 就跳到PAGE2.PHP.
最好找本书,系统地学习, PHP入门不难.
-bandwidth(带宽);
2004-12-5
{295}
(#2014543@0)
-
thanks.I exactly used this system variable, but didn't work, saying undefined index of post....then I use your code. no error, but no result or any display of my input either.....I was so stuck on it.....
For the reference, do you have any comment? I use the online book from php.net, but not enough....
-polareskimo(Inuit);
2004-12-6
{300}
(#2017007@0)
-
try1. what's your platform? linux or windows?
2. maybe your php setting's problem, check php parameters :
<?php
echo phpinfo();
?>
You can post here if you don't mind.
3. try to print $_post array.
<?php
print_r($_post);
?>
4. search 'php $_post doesn't work' from google, take a look.
-bandwidth(带宽);
2004-12-7
{332}
(#2018066@0)
-
Thanks. Here is the code and information.
-polareskimo(Inuit);
2004-12-20
{651}
(#2038442@0)
-
it is okactually please consider to turn the global option off, it is more dangerous than u ever think.
there might be something wrong with the mod_php module with apache. check if ur php build is ok.
btw, mine is using handler/action to run php script in apache.
-buma(buma);
2004-12-20
{259}
(#2038486@0)
-
thanks a bunch...anyway...would u please give me more details? I mean how to check apache module or php build? my previous php experience is zero and just read some words from php.net....totally a greener....
-polareskimo(Inuit);
2004-12-20
(#2038502@0)
-
echo $_POST['username']; ?
-henryan(Henry);
2004-12-21
(#2038714@0)
-
changed,,,,,still the same problem.
-polareskimo(Inuit);
2004-12-22
(#2039958@0)
-
php 5.0 is too old for u, yongsters like u should downgrade to a premature mate like php 4.x
-buma(buma);
2004-12-21
(#2039141@0)
-
changed to 4.3.10 and checked every thing needed for manual installation. The old problem is still there and new one comes out...:-(((((
-polareskimo(Inuit);
2004-12-22
{599}
(#2039974@0)
-
看看你的apache的logs下的error.log文件,里面一般有相对直接一点的错误信息
-helloyou(你好!QQ30);
2004-12-22
(#2039989@0)
-
[client 127.0.0.1] PHP Notice: Undefined variable: _post in C:\Program Files\Apache Group\Apache2\htdocs\Phpweb\myphpsetting.php on line 2
-polareskimo(Inuit);
2004-12-22
(#2039992@0)
-
上面那个页面你是从另一个含form的页面调用过来的吗?
-helloyou(你好!QQ30);
2004-12-22
(#2040000@0)
-
one is htm file, one is php file...
-polareskimo(Inuit);
2004-12-22
(#2041586@0)
-
ok
-buma(buma);
2004-12-22
{603}
(#2040458@0)
-
I will try your way.yeah, i know all these codes should work since they are just copied from the php manual.....I guess it must be some problem with the installation. But I checked the installation document again and again. Nothing is out of the recommendation. Sometimes I was wondering if I should check those damned configuration parameters or my brain....
btw, the php installation manual says it does support apache2.x. Is there some sapi like php4apache2.dll? ( php4apache.dll is for 1.x. )
-polareskimo(Inuit);
2004-12-22
{479}
(#2041582@0)
-
if you are under windows box, why not make it simple by using IIS to host the website? apache is not good for beginners
-guestagain(guest again);
2004-12-22
(#2041605@0)
-
finally the codes will be put in a web server....it will be linux and apache with over 90% confidence level....Furthermore, I thought before that IIS was not easier than the helicopter...
-polareskimo(Inuit);
2004-12-22
(#2041617@0)
-
At Least you can test the code. IIS is quite easy, and PHP install program will automatically config it for you.
-guestagain(guest again);
2004-12-23
(#2041636@0)
-
come on. iis is not free, using apache and php u r not obligated. fight for freedom. and i don't see any reason to use iis if the program is written in PHPthe code has nothing wrong.
IMHO, an install program does anything automatically for an admin is just not the style we should be looking for. it would be nice to have, however, if one is not familiar with something, better spend some time on it and figure it out. this was my learning cycle b4. hehe
-buma(buma);
2004-12-23
{303}
(#2041828@0)
-
my completed php information is here:
-polareskimo(Inuit);
2004-12-22
(#2039995@0)
-
if u have some java or other OO background, 5.0 is strongly recommanded. More robust, more hierarchy way..... One problem is if your php runing on other's server, very likely it wont be supported.
-elecskunk(elecskunk);
2004-12-21
(#2039405@0)
-
HAHAHA!!! Finally I worked it out.....almost died.....just caught it with IIS and PHP...will try apache soon...basic knowledge is very important...understanding it, not only knowing it...I made very stupid mistakes of web server configuration...
-polareskimo(Inuit);
2005-1-3
{134}
(#2055565@0)