now when the register global variable is off, so u have to convert all the vars. in form of $_GET and $_POPST.
so the easiest way i can suggest u is in your main page put a variable like that
<?
$values = $_POST ? $_POST : $_GET;
and then for each variable which u want to change it just put
$values['abc'], instead of $_GET['abc'] or $_POST['abc']
so only for each page u hv to include $values'[ and ']
and do not forget to put the main line of intialization a top of the page.
for any other q. mail me
----------------------
ganu
bolo open source ki jai...
khmma ghani...
----------
On 26 Sep 2005 20:19:18 -0000, SunCityJodhpurLUG@... <
SunCityJodhpurLUG@...> wrote:
Date: Mon, 26 Sep 2005 12:42:18 +0530 (IST)
From: H S Rai <hsrai@...>
Subject: PHP: register_globals = on
Mine PHP programs run when I set register_globals = on. Is
there any quick way to convert my all such programs to run
when I set that "off".
I learnt PHP from OnLine tutoral which taught me that way.
There should be some URL which make this change smooth and
quick.
Any pointer or hint will be appreciated.
Thanks in advance.
--
H.S.Rai
--
G@nu