note 75164 added to language.variables

From: Date: Tue, 15 May 2007 19:15:17 +0000
Subject: note 75164 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-126626@lists.php.net to get a copy of this message
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? ---- Server IP: 86.58.145.50 Probable Submitter: 84.238.25.101 ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- https://master.php.net/note/edit/75164 Del: integrated -- https://master.php.net/note/delete/75164/integrated Del: useless -- https://master.php.net/note/delete/75164/useless Del: bad code -- https://master.php.net/note/delete/75164/bad+code Del: spam -- https://master.php.net/note/delete/75164/spam Del: non-english -- https://master.php.net/note/delete/75164/non-english Del: in docs -- https://master.php.net/note/delete/75164/in+docs Del: other reasons-- https://master.php.net/note/delete/75164 Reject -- https://master.php.net/note/reject/75164 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126626) next »