Oh it was being echoed. Well I hit submit and then the value did not go through. I hit back and then refresh on my browser which would show the values of the fields (it does for the other fields) and that one comes out blank. The whole code is this
$rownum = 1;
while ($rownum <= $tracknum)
{
echo "
$rownum) Name: <input type='text' name=\"track".$iname."\" size='30' maxlength='50' value='.\"$track\".$iname."'>
Length: <input type='text' name='track$rownumlength1' size='2' maxlength='2' value='$track$rownumlength1'>:<input type='text' name='track$rownumlength2' size='2' maxlength='2' value='$track$rownumlength2'>:<input type='text' name='track$rownumlength3' size='2' maxlength='2' value='$track$rownumlength3'><br>";
${"track$rownumname"} = $trackname;
$rownum++;
}
You can see the top part is pretty much what you told me to put in. Whatever is different was not the first time I tried it. I tried making some changes. After hitting submit the page it is actioned for does this
$rownum = 1;
while ($rownum <= $tracknum)
{
$query = "insert into tracks (artist, title, trackname, trackpos, tracklength)
VALUES ('$userrow[bandname]', '$albtitle', '".$track.$iname."', '$rownum', '$track$rownumlength1:track$rownumlength2:track$rownumlength3')";
}
This should clear up what I wanted to do. Thanks for the help