File "std_info_check.php"

Full Path: /home/ichhrkpd/public_html/application/res_forms/std_info_check.php
File size: 2.49 KB
MIME-type: text/html
Charset: utf-8

<style>
    
    /* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}




    
</style>


<!-- Start main-content -->
 
   <!-- Section: inner-header -->
    <section style="background-color: #dcebf5">
      <div class="container pt-10 pb-10">
        <!-- Section Content -->
        <div class="section-content">
          <div class="row">
            
            <div class="col-md-12 text-center">
              <h4 class="title">Student's Information Status</h4>
            </div>

            <div class="col-md-12">
              <div style="margin: 0 auto; width:450px;">
                <form action="<?php echo site_url('academic/std_info');?>" name="form1" method="post" onsubmit="return required()">
                  
                  <label for="reg_id" style="width:150px; ">
                     Registration Number
                  </label>
                
                  <input type="number"  oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
                   maxlength = "10" id="reg_id" name="reg_id" size="20" required>
                 
                  <br>
                  <br>
                  <label for="mobile" style="width:150px;">
                     Mobile Number
                  </label>
              
                  <input type="number" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
                   maxlength = "11" id="mobile" name="mobile" placeholder="01XXXXXXXXX" required>
                  
                  <br><br>
                  <p style="text-align:center"><input type="submit" name="submit" value="Submit"></p>
                </form>
              </div>
              <?php
              
                if(!empty($in))
                 echo "<p style='text-align: center; color:red'><b>No Data Found! Please input correct information.<b></p>";
              
              ?>
             
              
            </div>
            
            
          </div>
        </div>
      </div>
    </section>  
    
    
    
<script type="text/javascript">
    function required()
    {
    var empt = document.forms["form1"]["reg_id"].value;
    var empt2 = document.forms["form1"]["mobile"].value;
    if (empt == "" && empt2 == "")
    {
    alert("Please Input Registration ID/Mobile Number");
   
    return false;
    }
    
}



</script>