You could also use variable variables to access the vars (because you have numbered names, you already know what the names of the vars are going to be)
for ($t=1;$t<10;$t++)
{
echo ${'item'.$t.'name'};
};
or, if you have control over what the html form looks like,
you can change the names of your form-fields from
item1name
item2name
item3name
to
itemname[]
itemname[]
itemname[]
Then, when the form is submitted you get an array called 'itemname'
which holds all the values of the itemname[] fields.
Note: this won't work with javascript formvalidation.