Welcome to WebmasterWorld Guest from 18.104.22.168
echo "<input type='text' name='$linecount_$filedcount' value='whatever'>";
When I send this to the next page ... I would like to write to the file like this:
$tempvar = $linecount . "_" . $fieldcount";
Of course I don't even know if a variable in the $_POST array is even possible. Is it?
Also before you just start writing vars into files I would clean them first. The general scenario is a perfect one for XSS.