Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
jiahuo xiao wrote:

?phpinfo();?,it show many tables,it means I config
correctly.but why when I post pamameter to an action
page,all the pamaeter which I get is blank that is
.so the action page run incorrectly,how could I do? 
thank you for replying me 


It sounds as though you have register_globals off in php.ini. Either
turn it on, or better still, get at your variables on your action page
with $GET['var'] for get method or $POST['var'] for post variables. Look
this up in the fine manual.

HTH
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hayes
At 03:56 12-3-03, you wrote:
web master engineer:
recently I encounter a problem as follow  ,I want
to ask you
My system is windows xp sp1, now I set up Apache
server V1.3.27 as localhost server and download
PHP4.3,I have configured PHP as SAPI Module.it can
work correctly as common php file which example for
?phpinfo();?,it show many tables,it means I config
correctly.but why when I post pamameter to an action
page,all the pamaeter which I get is blank that is
.so the action page run incorrectly,how could I do?
thank you for replying me
You did nothing wrong with the configuration, but PHP has changed the way 
it handles incoming variables now. The change happened with PHP 4.1.0. Form 
fields and parts of the url like page.php?var=1var2=2 are not 
automatically changed to variables anymore. When the form has an element 
such as

input name=fieldname

   you can read the value in the next page now with:

   $_POST['fieldname']

The reason for this new input mechanism is explained on 
http://www.php.net/release_4_1_0.php. There are ways to tell PHP to use the 
old way, i _think_ that was setting
   register_globals=On
in the php.ini file.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Justin French
on 12/03/03 7:40 PM, Chris Hewitt ([EMAIL PROTECTED]) wrote:

 jiahuo xiao wrote:
 
 ?phpinfo();?,it show many tables,it means I config
 correctly.but why when I post pamameter to an action
 page,all the pamaeter which I get is blank that is
 .so the action page run incorrectly,how could I do?
 thank you for replying me
 
 
 It sounds as though you have register_globals off in php.ini. Either
 turn it on, or better still, get at your variables on your action page
 with $GET['var'] for get method or $POST['var'] for post variables. Look
 this up in the fine manual.

small correction $_GET['var'] and $_POST['var'] not $GET['var'] and
$POST['var']

:)

Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
Justin French wrote:

on 12/03/03 7:40 PM, Chris Hewitt ([EMAIL PROTECTED]) wrote:

It sounds as though you have register_globals off in php.ini. Either
turn it on, or better still, get at your variables on your action page
with $GET['var'] for get method or $POST['var'] for post variables. Look
this up in the fine manual.
small correction $_GET['var'] and $_POST['var'] not $GET['var'] and
$POST['var']
:)

Justin

Gulp! Yes! That is what I get for trying to do my email too quickly! 
Thanks for correcting me.

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] recently I meet a problem as follow ,I want to ask you

2003-03-11 Thread jiahuo xiao
web master engineer:
recently I encounter a problem as follow  ,I want
to ask you   
My system is windows xp sp1, now I set up Apache
server V1.3.27 as localhost server and download
PHP4.3,I have configured PHP as SAPI Module.it can
work correctly as common php file which example for
?phpinfo();?,it show many tables,it means I config
correctly.but why when I post pamameter to an action
page,all the pamaeter which I get is blank that is
.so the action page run incorrectly,how could I do? 
thank you for replying me 

_
Do You Yahoo!? 

http://yahoo.eachnet.com/fu/co/rd.php?http://pages.eachnet.com/st/page/women/women.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-11 Thread Larry_Li

Sure. Could you paste your html codes  php codes here? I believe there are
a lot of nice guys are willing to help you. BTW, nice to meet you and hope
i could help you someway. I'm chinese too.

Larry



   
---
 
   

   To: [EMAIL PROTECTED]   

   cc: 

   jiahuo xiao Subject:  [PHP] recently I meet a 
problem as follow  ,I want to ask you 
   [EMAIL PROTECTED] 
  
   03/12/03 10:56 AM   

   

   






web master engineer:
recently I encounter a problem as follow  ,I want
to ask you
My system is windows xp sp1, now I set up Apache
server V1.3.27 as localhost server and download
PHP4.3,I have configured PHP as SAPI Module.it can
work correctly as common php file which example for
?phpinfo();?,it show many tables,it means I config
correctly.but why when I post pamameter to an action
page,all the pamaeter which I get is blank that is
.so the action page run incorrectly,how could I do?
thank you for replying me

_
Do You Yahoo!?

http://yahoo.eachnet.com/fu/co/rd.php?http://pages.eachnet.com/st/page/women/women.htm


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php