I’m not sure what you’re suggesting I do when you say “double check those lines once” since the code worked okay in the old website. (With < characters, not the ^ characters I replaced them with above, of course.) What in particular should I look for when I check those lines?
When I test the website further by typing some data into that textbox (after deleting the error message from the textbox) and click the “post” button, the resulting webpage displays a lot of errors.
Was there a php.ini file (or some other configuration file) somewhere in the old website, that didn’t get backed up because it wasn’t in my public_html directory? If so, where can I find a copy of the old php.ini file?
I had already set PHP to version 5.4 (since my code uses a function that’s not available in PHP 7).