PHP 5.6.40
Preview: submit-login.php Size: 1.25 KB
/home/urbanman/roadkaraja.in/submit-login.php

<?php
@session_start();
include("config.php");
error_reporting(0);


$vehiclenumber=$_POST['vehiclenumber']; 
$mobilenumber=$_POST['mobilenumber']; 
//$dob=$_POST['dob']; 


// To protect MySQL injection (more detail about MySQL injection)
$vehiclenumber = stripslashes($vehiclenumber);
$mobilenumber = stripslashes($mobilenumber);
//$password = mysql_real_escape_string($password);

	//$password = md5($password);

   $sql="SELECT * FROM customer WHERE vehicle_number='$vehiclenumber' AND customer_mobile='$mobilenumber'"; 
$result=mysql_query($sql);
 $row = mysql_fetch_array($result); 
// Mysql_num_row is counting table row
$count=mysql_num_rows($result);

// If result matched $myusername and $mypassword, table row must be 1 row
//echo $count; exit;
if($count==1){

// Register $myusername, $mypassword and redirect to file "login_success.php"

$_SESSION['cusid']=stripslashes($row['id']); 
//$_SESSION['mobile']=$mobile;
$_SESSION['mobile']=$row['customer_mobile'];

$_SESSION['customername']=$row['customer_name'];  
$_SESSION['vehiclenumber']=$row['vehicle_number'];
$_SESSION['branch']=$row['branch'];



header("location:customer/index.php?flag=dn");
}
else {
header("location:index.php?flag=invalid");
exit;
}
   
?>

Directory Contents

Dirs: 9 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-07-14 05:46:15
Edit Download
admin DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
assets DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
customer DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
employee DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
img DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
manager DIR
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
- drwxrwxrwx 2026-07-14 05:46:15
Edit Download
2.51 KB lrw-rw-rw- 2026-07-06 10:38:11
Edit Download
0 B lrw-r--r-- 2026-07-14 06:17:38
Edit Download
1.77 KB lrw-rw-rw- 2026-07-06 10:38:11
Edit Download
3.07 KB lrw-rw-rw- 2026-07-06 10:38:11
Edit Download
32.06 MB lrw-r--r-- 2026-07-06 10:50:29
Edit Download
1.25 KB lrw-rw-rw- 2026-07-06 10:38:11
Edit Download
3.84 KB lrw-rw-rw- 2026-07-06 10:38:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).