Hadi1989

Untitled

Nov 30th, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.     require_once 'conn.php';
  3.    
  4.     if(ISSET($_POST['save'])){
  5.         $firstname = $_POST['firstname'];
  6.         $middlename = $_POST['middlename'];
  7.         $lastname = $_POST['lastname'];
  8.         $address = $_POST['address'];
  9.         $civil_status = $_POST['civil_status'];
  10.    
  11.        
  12.         $conn->query("INSERT INTO `member` VALUES('', '$firstname', '$middlename', '$lastname', '$address', '$civil_status')") or die($conn->error());
  13.        
  14.         header('location: index.php');
  15.     }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment