I have a block of code to submit my HTML form values to my Database using PHP via XAMPP. After construction and testing the record will saved in database successfully but I see a notice that says below:
Undefined variable: localhost in C:\xampp\htdocs\30-11-2021\processhtml.php on line 19
Kindly see my line 19 below also:
$conn = new mysql ($localhost, $dbusername, $dbpassword, $dbname);