This is the code. It is working on localhost, but when I upload it to my server the PHP does not send information to MySQL.
<?php
    session_start();    
    include('connect.php');
        if(isset($_POST['signup'])){
            echo "<pre>"; print_r($_POST); echo "</pre>";
            $name=$_POST['name'];
            $email=$_POST['email'];
            $password=md5($_POST['password']);
           $contact=$_POST['contact'];
            $city=$_POST['city'];
              $address=$_POST['address'];
              $signup_sql=mysqli_query($con,"select * from signup where email='".$email."'");
               //$signup_res=mysqli_query($con,$signup_sql);
               //$signupresult=mysqli_fetch_array($signup_res);
            $dataa = mysqli_fetch_array($signup_sql);
            if(empty($signup_res)){
                   $sql="insert into signup (name,email,password,contact,city,address) values ('".$name."','".$email."','".$password."','".$contact."','".$city."','".$address."')";
                $res=mysqli_query($con,$sql);
                if($res>=1){
                    @header("location:login.php");
                }
                else{
                    @header("location:index.php");
                }
            }else{
                @header("location:index.php");
            } 
        }
    ?>
 
     
     
    