What you need to do is create a seperate variable and put the names into that. for example.
<?
$name1="hello";
$name2="world";
for ( $temp=1; $temp<3; $temp++ )
{
$thisvar="name".$temp;
echo ${$thisvar}." ";
}
?>
will display hello world on screen.
Mark.