How can i solve http error500

Hi and welcome to the forum!

Also, when I submit the form I can see you’re using the old mysql functions. Those used to work up until PHP 7.4, when they still had the patches to make those functions work; now is the time to rewrite your code to use mysqli functions instead.