Receiving 'undefined index:name' error while sending submissions to MySQL database using PHP