variable variable name

hii ,
i get a list of variables from a form and they are named as xx0, xx1,xx2....
i have a for loop and a variable which ranges from 0-n, how do i get the values of xx0,xx1... and so on!!!

where "i ranges {0-n} "
i tried using ${xx$i} , $xx$i , $"xx$i" $(xx$i)... and so on but to no effect..

can anybody help me with this.

Here is a simple example of how to do it in Bash

#/usr/bin/bash

for ((i=0;i<10;i++))
do
   filename="xx$i"
   echo $filename
done

hii wen i did that i jus got xx0