RE: [PHP] extract($_POST)

From: Date: Wed, 23 Oct 2002 10:23:14 +0000
Subject: RE: [PHP] extract($_POST)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121053@lists.php.net to get a copy of this message
> That's not possible. I don't know how to explain it technically, but > when you submit the form, your data is passed to an instance of the > processing script and the script runs. Even if a dozen instances are all > running at once, each only operates on the data that was passed to it by > the user pressing submit. > > What are you "storing"?? I will be using sessions to keep things such as a user id while the end user is traversing from page to page but I wasn't sure that it would make sense to also store variable values as well in the session while they are needed then drop them from the session when they are not. As long as each process is secure enough to keep one person from getting another person's values then it should be secure enough to use the extract($_POST) method as opposed to using the $_POST['var'] method. It just seems that it would be more effective to get all the values at once instead of writting out every instance of $_POST['var'] for each individual 'var'. Thanks, Ed

« previous php.general (#121053) next »