golden hour
/home/phakp/public_html/bkp_full/old_site_bkp/form
⬆️ Go Up
Upload
File/Folder
Size
Actions
connect.php
340 B
Del
OK
display.php
912 B
Del
OK
error_log
2.41 KB
Del
OK
insert.php
1.25 KB
Del
OK
update.php
1.61 KB
Del
OK
Edit: insert.php
<?php include("connect.php"); ?> <html> <head> <title>Insertion Page</title> </head> <body> <br /> <br /> <form action="" method="GET"> Name:  <input type="text" name="name" value=""/> <br /><br /> Email:  <input type="text" name="email" value=""/> <br /><br /> Phone# <input type="text" name="phone" value=""/> <br /><br /> <input type="submit" name="submit" value="Submit"/> </form> <?php if($_GET['submit']) { $nm = $_GET['name']; $em = $_GET['email']; $ph = $_GET['phone']; if($nm!="" && $em!="" && $ph!="") { $query = "INSERT INTO `members` (`name`, `email`, `phone`) VALUES ('$nm', '$em', '$ph')"; $data = mysqli_query($conn, $query); if($data) { echo "Data inserted in to the Database"; } } else { echo "All fields are required"; } } ?> </body> </html>
Save