Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudietDisable Function :
Path : /var/www/html/site_shopudiet/
Server IP : 65.20.74.164
Client IP : 18.224.69.169
Current File : /var/www/html/site_shopudiet/postcode.php |
<?php
include 'dbconnect.php';
$postcode=$_POST['postcode'];
$_SESSION['postcode']=$postcode;
$nameErr = "";
$query="select * from postcose where postcode='".$postcode."'";
$res_u = mysqli_query($conn,$query);
if (mysqli_num_rows($res_u) ==0) {
header('location:shop.php');
}
else{
header('location:shop.php');
}
?>