<?php require('includes/head.php');
require 'connection/conn.php';
 if(isset($_POST['submit']))
 {
     
	 $n=$_POST['name'];
	 $n2=$_POST['name2'];
	 $m=$_POST['mobile'];
	 $a=$_POST['address'];

	
	 $add="insert into `customer2`( `customer_name`, `customer_name_latin`, `customer_address`, `customer_mobile`,`user`)
     values('$n','$n2','$a','$m','$user')";
	 $conn->query($add);
	
	 
	 
	 
	 
	 
	  echo "<script type='text/javascript'>
		           window.location.href='customer_list2.php'
		        </script>";
 }
?>


<center><h2>کڕیاری تازە</h2></center>
<form action="" method="post">
<table  dir=rtl border=3 width=80% align=center style="font-size:16pt">
	
	<tr >
		<td>ناو</td><td><input type="text" name="name" required></td>
	</tr>
	<tr >
		<td>ناوی لاتینی</td><td><input type="text" name="name2" required></td>
	</tr>
	<tr >
		<td>مۆبایل</td><td><input type="number" name="mobile" required></td>
	</tr>
	<tr >
		<td>ناونیشان</td><td><input type="text" name="address" required></td>
	</tr>
	<tr >
		<td></td><td><input type="submit" name="submit" value="زیاد کردن"></td>
	</tr>
  </table>
 
</form><?php require'includes/foot.php';?>