How can I populate a Form field and hide it?

Thanks for all your replies. Much appreciated.
What are the consequences of not updating the script to work with PHP7?
What would it take to upgrade this type of script? A complete rewrite? Or a modification?
So, with PHP7 the script can no longer use the mySQL database?