ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
[PHP] using new AUTOGLOBALS
by cyberskydive other posts by this author
Apr 5 2002 2:55PM messages near this date
RE: [PHP] how to process URL parameers | Re: [PHP] using new AUTOGLOBALS
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
Thread:
cyberskydive
Miguel Cruz
Philip Olson
cyberskydive
Erik Price
Erik Price

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved