<?php header("Access-Control-Allow-Origin: *"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <?php // Initialize the session session_start(); // Check if the user is logged in, if not then redirect him to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ // header("location: login.php"); // exit; } ?> <?php $firstName = $_POST["postdata"]; $lastName = $_POST["last_name"]; echo $firstName." ".$lastName; echo "Building starting..."; //enter name and lastname into your form and onclick they will be alerted ?> <?php $packid=$_GET["packid"]; $userid=$_GET["userid"]; // Include config file require_once "configs.php"; // $sql = "update ansa set status=0 where ownansaid =$userid and packid =$packid;"; $res = $db->query($sql); if ($res) {echo "$sql updated successfully $packid $userid"; // include "s_asqpl.php"; } else { echo "Error: " . $sql . "<br>" . $link->error; } mysqli_close($link); ?>
Edit file:showansap.php1458