Using Variable Variables from form values inside a function

From: Date: Mon, 18 Feb 2002 13:38:06 +0000
Subject: Using Variable Variables from form values inside a function
Groups: php.general 
Request: Send a blank email to php-general+get-85183@lists.php.net to get a copy of this message
Is it possible to use variable variables from form values inside a function. For example when submitting form values, this works fine: foreach($_POST as $key=>$value) { if (empty($$key)) { print "empty value $key<br>"; } } but, this doesn't: function myFunction() { foreach($_POST as $key=>$value) { if (empty($$key)) { print "empty value $key<br>"; } } } Anyone dealt with this? ======================= Ron Dyck WebbTech www.webbtech.net rhd@webbtech.net 905 734-1164

« previous php.general (#85183) next »