diff --git a/.hta_slug/admin/edit-form.php b/.hta_slug/admin/edit-form.php
index 92fb18d..bdf4f2a 100644
--- a/.hta_slug/admin/edit-form.php
+++ b/.hta_slug/admin/edit-form.php
@@ -3,17 +3,17 @@ require_once('.hta_config/crm_config.php');
require_once('.htac_header.php');
require_once('.htac_nav.php');
- if($_SERVER['REQUEST_METHOD']=="POST"){
+ if( $_SERVER['REQUEST_METHOD']=="POST" && isset($_POST['bverticals']) && isset($_POST['bverticals']) && isset($_POST['form_id']) ){
try {
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("UPDATE addforms SET formname = :formname, bverticals = :bverticals WHERE id = :id");
$stmt->bindParam(':formname', $_POST['formname']);
- $stmt->bindParam(':formname', $_POST['formname']);
- $stmt->bindParam(':id', $_GET['id']);
+ $stmt->bindParam(':bverticals', $_POST['bverticals']);
+ $stmt->bindParam(':id', $_POST['form_id']);
$stmt->execute();
- echo "Record Updated successfully";
+ echo "Record Updated successfully",$_POST['form_id'], '
',$_POST['formname'], '
',$_POST['bverticals'], '
';
} catch(PDOException $e) {
echo "Error: " . $e->getMessage();
}
@@ -46,11 +46,12 @@ require_once('.htac_nav.php');
Edit From