in reply to Form Entry to HTML and Plain text

I wish there was a way to modify posts, cause after reading the above, I was even confused.

Basically, a form is filled, submitted, and another form is returned with the line:

print "<INPUT TYPE=HIDDEN NAME=\"var_001\" VALUE=\"$INPUT{'var_001'}\" +>\n";
Now, if $INPUT{'var_001'} contains a quotation mark, the whole returned form is corrupted.

So, how to cope?