Re: renaming form posted variable names

From: Date: Tue, 03 Apr 2001 00:15:57 +0000
Subject: Re: renaming form posted variable names
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46725@lists.php.net to get a copy of this message
> <PRE> > function do_each($passed_array) { > > global ${$tmp_var_name}; Move this: > > if (substr($passed_array[0],-5) == "_post") { > $tmp_var_name = substr($passed_array[0],0,-5); > ${$tmp_var_name} = $passed_array[1]; down here. > return(${$tmp_var_name}); > } > } -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#46725) next »