Forum Moderators: coopster
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";
fwrite($fh, $_POST[$tempvar]);
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.