skip to Main Content

Can isset($_REQUEST['button name']) be used with declared id=$_POST['id'] or do we need to use same $_REQUEST? – Jquery ajax

This is update_action.php /*this is for update_action.php (button name btnUpdateFaculty) */ if(isset($_REQUEST['btnUpdateFaculty'])) { $id = trim($_POST['id']); $date = trim($_POST['date']); $role = trim($_POST['role']); $description = trim($_POST['description']); $venue = trim($_POST['venue']); $sql = "UPDATE admin_faculty SET date='$date', role='$role', description='$description', venue='$venue' WHERE id='$id'"; if…

VIEW QUESTION
Back To Top
Search