note 75164 rejected from language.variables by tularis

From: Date: Tue, 15 May 2007 20:18:38 +0000
Subject: note 75164 rejected from language.variables by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126627@lists.php.net to get a copy of this message
Note Submitter: azzimuth at azzimuth dot com ---- I'm trying to use POST variables but no succeed. Tried following for ($i=0; $i<$num_res; $i++){ $temp="_POST['quan{$i}']"; $quans[$i]=$$temp; echo $quans[$i]; } for ($i=0; $i<$num_res; $i++){ $temp="_POST['quan{$i}']"; echo $$temp; } for ($i=0; $i<$num_res; $i++){ $temp="_POST['quan$i']"; $quans[$i]=$$temp; echo $quans[$i]; } for ($i=0; $i<$num_res; $i++){ $temp="quan{$i}"; $quans[$i]=${$temp}; echo $quans[$i]; } What is wrong here?

« previous php.notes (#126627) next »