Try: for ($i=1; $i<=$n;i++){ ... $tmp="liv_$i"; echo "{$$tmp}"; ... }
Veronica Ghezzi wrote: >Hi, > i must get the information saved in a several select list named > liv_1 <select name="liv_1"> > liv_2 <select name="liv_2"> > liv_3 <select name="liv_3"> > .... > liv_n <select name="liv_n"> > >To get the value i work in this way... > > $n = 50; > for ($i=1; $i<=$n;i++){ > ... > echo "$liv_$i"; //// in asp i do: response.write >(request("liv_" + >i)) > ... > } >But i get only > 1 > 2 > 3 > ... > 50 > >What can i do to get "$liv_1" ... "$liv_2"... ??? >Thank you a lot! > >Veronica Ghezzi > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php