in reply to Getting variables from file

This is only a stylistic suggestion, but you should look into using qq instead of double quotes for your strings so that you don't have to escape all the quotes in your html properties.
print q{<FORM name="form" ACTION="cgi.pl" METHOD="POST">}; print qq{<input type="hidden" name="name1" value="$name1"> }; print qq{<input type="hidden" name="name2" value="$name2"> }; print qq{<input type="hidden" name="address" value="$address"> }; print qq{<input type="hidden" name="phone" value="$phone"> }; print q{<input style="width: 70px; height: 20px "type="submit" value=" +OK" />};
- Miller