0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.138.67.56


Current Path : /proc/thread-self/root/var/www/html/univadmin/js/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin/js/studReg.js

var $host_url =
  "https://" +
  window.location.host +
  "/" +
  window.location.pathname.split("/")[1] +
  "/app.php?a=";

function regStdDet() {
  let regno = $("#fregno").val();
  let mob = $("#fmobile").val();

  if (regno.length > "15" || regno == "") {
    $("#fregno").focus();
    Swal.fire({
      title: "Error",
      text: "Please Enter Valid Register No.",
      icon: "error",
    });
    return;
  }

  if (mob.length !== 10 || mob == "") {
    $("#fmobile").focus();
    Swal.fire({
      title: "Error",
      text: "Please Enter Valid Mobile No.",
      icon: "error",
    });
    return;
  }

  $.ajax({
    type: "post",
    url: $host_url + "studRegData",
    data: "fregno=" + regno + "&fmob=" + mob,
    success: function (response) {
      if (response.error_code == 0) {
        $("#fregno").focus();
        Swal.fire({
          title: "Success",
          text: response.data.msg,
          icon: "success",
        });
        window.location = "https://studentportal.universitysolutions.in/";
        // $("#fregno").val("");
        // $("#fmobile").val("");
      } else {
        $("#fregno").focus();
        Swal.fire({
          title: "Failed",
          text: response.data.msg,
          icon: "error",
        });
      }
    },
  });
}