the thing is, using the methods I described in my first post, the
superglobals or autoglobals arent working. I cant figure out why, and , like
the other guy said, most books dont include this feature in a topic for
discussion.

Can anyone offer advice?


"Cyberskydive" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> So I wanna learn how to code properly with register_globals off, I reead
on
> PHP.net about the new auto globals and inmy new php4.1.2 windows
> installation using php.ini-rec edited according to the intall.txt file,
and
> a few changes from books I have (upload tmp dir etc) I'm off to learn how
to
> use the new auto globals. I've tried $_REGISTER and $_POST .  Here is what
I
> tried as a simple test.
>
> <form method="post" action="somefile.php">
> <input type="text" name="is_name">
> <input type="submit">
> </form>
>
> --somefile.php--
>
> <?
>
> print("$_REGISTER["is_name"]");
> or
> print("$_POST["is_name"]");
>
> ?>
>
> I also tried $HTTP_POST_VARS["name"]
>
> I didnt think about it till now but would it work if i assigned say :
> $is_name = getenv($_POST or $_REGISTER);
>
> this came about while I was learning sessions, which were not working
right
> with 4.0 installed with APACHE on windows. So I decided to update my php,
as
> an ISAPI module, instead of running as a cgi version, and I left
> register_globals off.
>
> when I tried to edit an example session script I had from a book to use
> $_POST, $_REGISTER, or even $_SESSION i got a blank page on the reload. I
> think sid is returning empty.
>
> Can anyone offer me advice on this, proper coding and or proper
> configuration in PHP.INI
>
> I'm trying to learn all this at once-lol, and learn it properly the first
> time around, especially since register globas will be deprecitated-poof.
>
> I WANT TO BE A GOOD PHP DUDE_LOL_HAHA
>
>



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

Reply via email to