-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend.php
More file actions
24 lines (23 loc) · 870 Bytes
/
send.php
File metadata and controls
24 lines (23 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" charset="utf-8"></script>
<script src="sweetalert.js"></script>
<body>
<?php
@$cn=new mysqli('localhost','root','','campus');
$username=$_GET['username'];
$send=$_POST['send'];
$qry3="insert into stud_support(username,send) values('$username','$send')";
if($rslt2=$cn->query($qry3)){
echo"<script>Swal.fire({
icon: 'success',
title: 'Your query sent successful',
showConfirmButton: false,
timer: 2000
}).then((result) => { window.location.href='student_interface.php?username=".$username."' })</script>";
//echo'<script>window.location.href='student_interface.php?username=".$username."'</script>';
}
?>
</body>
</html>