$con = mysqli_connect('localhost', 'root', '',’db_connect’);
The “db_connect” is our database name that we created before.
After connection database you need to take post variable from the form. See the below code
$txtName = $_POST['txtName'];
$txtEmail = $_POST['txtEmail'];
$txtPhone = $_POST['txtPhone'];
$txtMessage = $_POST['txtMessage'];
$con = mysqli_connect("localhost","your_localhost_database_user","your_localhost_database_password","your_localhost_database_db");
Code Example |
---|
Html :: html onkeyup set value |
Html :: html form using http |
Html :: full height div inside td |
Html :: use jquery variable in html |
Html :: html button with href |
Html :: lightweight charts cdn |
Html :: html italic |
Html :: make text bold with html |
Html :: how to highlight any text in html and css |
Html :: shoppy embed |
Html :: caption in hhtml |
Html :: angular nested if else |
Html :: how to create animated text in html |
Html :: bootstap5 card |
Html :: game engine |
Html :: bootstrap hamburger |
Html :: Bootstrap 4.6 Starter Template | bootstrap starter template |
Html :: div search bar |
Html :: HTML Table - Rowspan |
Html :: how to customize button in html |
Html :: semantic ui |
Html :: html line break |
Html :: postman tutorial |
Html :: <!---- html |
Html :: tooltip in html |
Html :: cadre en html5 |
Html :: is it illegal to hunt polar bears |
Html :: expo webview local html |
Html :: image from website in whatshapp with meta tag |
Html :: routerLinkActive in dropdown main text |