UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_shanka_samadhan.php
<?php include "top.php"; include "header.php"; include "menu.php"; ?> <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> <script type="text/javascript"> $(document).ready(function (e){ $("#uploadForm").on('submit',(function(e){ e.preventDefault(); var flag = true; var inputField1 =document.getElementById("category"); if (inputField1.value == "Select Category") { flag = false; alert("Please select category"); document.getElementById("category").focus(); return false; } var inputField2 =document.getElementById("long_descqus"); if (inputField2.value == "") { flag = false; alert("Please enter title"); document.getElementById("title").focus(); return false; } var inputField3 =document.getElementById("long_desc"); if (inputField3.value == "") { flag = false; alert("Please enter discription"); document.getElementById("long_desc").focus(); return false; } var category = document.getElementById("category").value; var title = document.getElementById("long_descqus").value; var long_desc = document.getElementById("long_desc").value; try { if (flag == true) { $.ajax({ url: "save_shanka_samadhan.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ window.location.href="add_shanka_samadhan.php"; }, error: function(){} }); } } catch (Error) { alert(Error); } return; })); }); </script> <div class="form-w3layouts"> <!-- page start--> <!-- page start--> <div class="row"> <div class="row w3-res-tb"> <div class="col-sm-5 m-b-xs"> <a href="list_shanka_samadhan.php"><button class="btn btn-sm btn-default"><b>Back to Shanka Samadhan List</b></button></a> </div> <div class="col-sm-4"> </div> <div class="col-sm-3"> </div> </div> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"> Add Article </header> <div class="panel-body"> <div class="position-center"> <form enctype="multipart/form-data" id="uploadForm" action="save_shanka_samadhan.php" method="post"> <div class="form-group"> <label for="exampleInputPassword1">Category</label> <select name="category" id="category" class="form-control"> <option>Select Category</option> <?php $sql1 = "SELECT * FROM shankasamadhancategorytb"; $result1 = mysqli_query($conn,$sql1) or die("Query Failed."); if(mysqli_num_rows($result1) > 0){ while($row1=mysqli_fetch_assoc($result1)){ echo "<option value='{$row1['id']}'> {$row1['category_name']}</option>"; } } ?> </select> </div> <div class="form-group"> <label for="exampleInputEmail1">Question</label> <!--<input type="text" class="form-control" id="title" name="title" placeholder="title">--> <textarea id='short_descqus' name='short_descqus' hidden="hidden"></textarea> <textarea id='long_descqus' name='long_descqus' ></textarea> </div> <div class="form-group" style="display:none" > <textarea id='short_desc' name='short_desc' hidden="hidden"></textarea> </div> <div class="form-group"> <label for="exampleInputPassword1">Answer</label> <textarea id='long_desc' name='long_desc' ></textarea> </div> <input type="submit" class="btn btn-info" onclick="data()" value="Submit"> </form> </div> </div> </section> </div> </div> </div> <!-- Script --> <script type="text/javascript"> // Initialize CKEditor CKEDITOR.inline( 'short_desc'); CKEDITOR.replace('long_desc',{ width: "100%", height: "200px" }); // Initialize CKEditor CKEDITOR.inline( 'short_descqus'); CKEDITOR.replace('long_descqus',{ width: "100%", height: "200px" }); </script> <?php include "footer.php"; ?>
Copyright © 2025 - UnknownSec