Code:

	$username=$_POST['username'];
	$password=$_POST['password'];
	$confirmpassword=$_POST['confirmpassword'];
	$email=$_POST['email'];
	$address=$_POST['address'];
	$phone=$_POST['phone'];
	$usertype="client";
	$query="insert into user_details(`username`,`password`,`email`,`address`,`phone_number`,
	`user_type`) values ('$username','$password','$email','$address','$phone','$usertype')";
	mysql_query($query,$Link);
	

 
Note

• required values post from either same file or another file.