How can i get data from profile php file when i clicksignin

How can I get data from profile.php file when i click Signin(signin.php)
signin.php
<?php
$error="";
if(isset($_POST["smit"])){
$email=$_POST["email"];
$password=$_POST["pwd"];
$db=new mysqli("localhost","root","",&q...