hjkhhndndndnd,trt
bnmbertsu,yu,yu,fffffffy,ltdfg
/
home4
/
gofvotmy
/
public_html
/
shs_admission
/
Upload FileeE
HOME
<?php session_start(); include 'connection.php'; if (isset($_POST['submit'])) { $telephone = $_POST['telephone']; $password = $_POST['password']; // Using prepared statements to prevent SQL injection $login = "SELECT * FROM shs_pre_registration WHERE Tel = ? AND Password = ?"; $stmt = mysqli_prepare($con, $login); // Bind parameters mysqli_stmt_bind_param($stmt, "ss", $telephone, $password); // Execute query mysqli_stmt_execute($stmt); // Get result $result = mysqli_stmt_get_result($stmt); // Fetch user details $res = mysqli_fetch_array($result); // Check if login is successful if ($res > 0) { $_SESSION['Tel'] = $res['Tel']; $_SESSION['Student_Name'] = $res['Student_Name']; echo "<script>alert('Login Successful');</script>"; echo "<script>window.location.href='registration.php'</script>"; } else { echo "<script>alert('Invalid Mobile No. or Password');</script>"; } // Close statement mysqli_stmt_close($stmt); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Sacred Heart Sr. Sec. School</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link href="css/navigation.css" rel="stylesheet" type="text/css" /> <link href="css/reset.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="themes/bar/bar.css" type="text/css" media="screen" /> <link rel="stylesheet" href="jquery_css/nivo-slider.css" type="text/css" media="screen" /> <link rel="stylesheet" href="jquery_css/style.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="js/jquery.nivo.slider.js"></script> <script type="text/javascript" src="js/stscode.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> <script type="text/javascript" src="js/stscode.js"></script> <style type="text/css"> .datajustify {font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify } .Body-C2 {font-family:"Arial", sans-serif; font-size:13.0px; line-height:1.23em; color:#4c4e50; } .Body-C3 {font-family:"Verdana", sans-serif; font-size:13.0px; line-height:1.23em; color:#4c4e50; } .Body-P {margin:0.0px 0.0px 12.0px 0.0px; text-align:left; font-weight:400; } table { width: 100%; } table tr { margin-bottom: 30px; /* Add spacing between rows */ } table td { padding: 10px; } fieldset{ height: auto; width: 50%; padding: 57px; } h2{ text-align: center; padding: 30px; } .submit{ display: block; margin:20px auto; font-size: 16px; background: orange; border: none; padding: 10px 20px ; cursor: pointer; } label{ font-size: 14px; } h4{ padding: 50px 50px 0 ; text-align: center; line-height: 1.5; } .uploaded-photo { float: right; width: 150px; /* Adjust the width as needed */ } #footer{ min-height: 110px; } .heading-buds { display: flex; /* Use flexbox to create a horizontal layout */ width:70%; margin:0 auto; } .left-div { flex: 1; /* Allow the left div to grow and take available space */ padding: 20px; /* Add padding for spacing */ } ul { list-style-type: disc; /* Use bullets for list items */ padding-left: 20px; /* Add some left padding to the list */ } ul li{ font-size: 16px; line-height: 2; color: red; font-weight: bold; } img { max-width: 120%; /* Ensure the image scales within the right div */ height: auto; /* Maintain the aspect ratio of the image */ } .download-button { background-color: #007bff; /* Set the background color to a blue shade */ color: #fff; /* Set the text color to white */ border: none; /* Remove borders */ padding: 10px 20px; /* Add some padding to make the button larger */ cursor: pointer; /* Change the cursor to a pointer on hover */ border-radius: 5px; /* Add rounded corners */ } </style> </head> <body> <!--section start--> <section> <!--header div start--> <div id="header"> <div class="header_content"><!--header_content div start--> <!--logo div start--> <div id="logo"> <img src="images/logo.png" alt="logo" /> </div> <!--logo div end--> <!--heading div start--> <div class="heading"> <img src="images/heading.png" alt="heading" /> </div> <!--heading div end--> <div class="slogan"><!--slogan start--> <img src="images/h-slogan.png" alt="slogan" /> </div><!--slogan end--> </div><!--header_content div end--> </div> <div class="content-outer"><!--content div start--> <div class="content-inner"><!--content div start--> <div class="content-about"><!--content about start--> <div class="heading-buds"> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><table width="50%" border="0" cellspacing="0" cellpadding="5" align="center"> <tr class="datajustify"> <td> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><fieldset> <!-- <legend> Query Form</legend> --> <h2>Student Login</h2> <form id="login" method="POST" enctype="multipart/form-data"> <table> <tr> <!-- <h2> <span style="color:red"> Registration Closed</span> </h2> --> <td><label for="telephone">Mobile No.:<br>(As used in pre-registration form)<span style="color: red; font-weight: 900;">*</span></label></td> <td><input type="text" id="telephone" name="telephone" required oninput="validateNumberInput(this)"></td> </tr> <tr> <td><label for="password">Password:<span style="color: red; font-weight: 900;">*</span></label></td> <td><input type="password" id="password" name="password" required class="locField"></td> </tr> </table> <button name="submit" id="submit" class="submit" type="submit">Submit</button> <br> <span style="font-size: 16px;"> <a href="Forgot-Password.php"> Forgot Password?</a></span> <span style="font-size: 16px; float: right;"> <a href="pre-registration.php">Register</a></span> </form> </fieldset></td> </tr> </table> </td> </tr> </table></td> </tr> </table> </div> <!--content about end--> </div><!--content div end--> </div><!--content div end--> </section><!--section end--> <div id="footer"> <div class="footer-inner"> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="276" valign="top"><table width="250" border="0" align="left" class=""> <tr> <td><table width="200" border="0" cellpadding="0" cellspacing="0" class="footerlinks"> </table></td> </tr> </table></td> <td width="404" valign="top"><table border="0" align="left" class="footer_gallery"> </table></td> </tr> <tr> <td height="30" colspan="3" valign="top" class="footer-txt"><div align="center">© Sacred Heart Senior Secondary School</div></td> </tr> </table> </div> </div> <script type="text/javascript"> function validateNumberInput(input) { // Remove non-numeric characters let inputValue = input.value.replace(/\D/g, ''); // Restrict input to 10 digits inputValue = inputValue.substring(0, 10); // Update the input value input.value = inputValue; } $('.locField').on('keydown', function(e) { if (e.which === 32 && e.target.selectionStart === 0) { return false; } }); </script> </body> </html>