note 29998 deleted from language.variables.variable by danbrown

From: Date: Wed, 24 Jun 2009 16:58:15 +0000
Subject: note 29998 deleted from language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157408@lists.php.net to get a copy of this message
Note Submitter: vrillusions at neo dot rr dot com ---- Here is a very simple way of getting items from the $_POST superglobal into seperate variables. I did this so I can easily print information in a form without having to worry about "this value isn't set" messages. will create variables in the form $frm_nameInForm. foreach($_POST as $key => $value) { $varname = "frm_".$key; $$varname = $value; } [Editor Note: Instead of this code, you could simply use extract() or import_request_variables() -Philip]

« previous php.notes (#157408) next »