Re: [SMARTY] Getting values ?

From: Date: Sat, 26 Apr 2003 21:03:32 +0000
Subject: Re: [SMARTY] Getting values ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9391@lists.php.net to get a copy of this message
On Sat, Apr 26, 2003 at 08:56:40PM +0200, Wilhelm Kutting wrote: > Hi, > i am dynmaically getting the values posted from a form withe > the following loop: > > $fields = array('name', 'street', 'plz', 'city'); > foreach($fields as $val) > { > $$val = $_POST[$val]; > $part1 .=" $val , " > } > > the wanted output is for $part (working fine): > $_post[name] , $_post[street] and so on wrong list. this is a question for php-general, not for smarty-general. @php-general they'll tell you sth. like: <?php $part2 .= " '" . $$val . "' , "; ?> > now i like to get a parsing of the Post in a new variable $part2 > $part2=" 'myers', 'lombardstreet', '45435', 'New > York'" > > Isn't this possible?

« previous php.smarty.general (#9391) next »