Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Selecting Database
- include_once 'dbh.php';
- //Here we fetch the data from the URL that was passed from our HTML
- form
- $userEmail = $_POST['userEmail'];
- $jobiD = $_POST['jobID'];
- $sql = "UPDATE jobPost SET emailTeacher='$userEmail' WHERE jobID= ('".$jobID."');";
- mysqli_query($conn, $sql);
- ?>
- function myFunctionjobStatus() {
- var jobID = document.getElementById("jobID").value;
- //AJAX code to submit form.
- $.ajax({
- type: "POST",
- url: "http://localhost:8888/EduSubOct/jobstatus.php",
- data: { userEmail: localStorage.getItem("email"), 'jobID':
- jobID },
- cache: false,
- success: function(html) {
- alert("Request Sent");
- }
- });
- }
Add Comment
Please, Sign In to add comment