Thank you for your explanation, Satish. But how do I save $myfile in an html table? With $regnumber, $username and $comments each in a separate cell. Perhaps you can shine a light on that? Because I have been struggling for months now to get it done.