diff --git a/.hta_config/crm_config.php b/.hta_config/crm_config.php
index db71d12..401ee57 100644
--- a/.hta_config/crm_config.php
+++ b/.hta_config/crm_config.php
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/.hta_slug/admin/add-forms.php b/.hta_slug/admin/add-forms.php
new file mode 100644
index 0000000..184d572
--- /dev/null
+++ b/.hta_slug/admin/add-forms.php
@@ -0,0 +1,151 @@
+setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+ $stmt = $conn->prepare("INSERT INTO addforms (formname, bverticals) VALUES (:formname, :bverticals)");
+ $stmt->bindParam(':formname', $lowercase_bv);
+ $stmt->bindParam(':bverticals', $_POST['bverticals']);
+ $stmt->execute();
+ echo "Record added successfully";
+ } catch(PDOException $e) {
+ echo "Error: " . $e->getMessage();
+ }
+ }
+?>
+
+
+
+ | Serial |
+ Form Name |
+ Business Verticals |
+ Time |
+ Action |
+
+
+
+ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+ $stmt = $conn->prepare("SELECT * FROM addforms ORDER BY created_at DESC");
+ $stmt->execute();
+ $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
+ foreach($rows as $row){
+ ?>
+
+ |
+ |
+ |
+ |
+
+
+ |
+
+ rowCount();
+ } catch (PDOException $e) {
+ echo "Error: " . $e->getMessage() . "
";
+ }
+ ?>
+
+
+
+
+
+
diff --git a/.hta_slug/admin/business-verticals.php b/.hta_slug/admin/business-verticals.php
index 44a04ee..82af43a 100644
--- a/.hta_slug/admin/business-verticals.php
+++ b/.hta_slug/admin/business-verticals.php
@@ -5,7 +5,7 @@
if($_SERVER['REQUEST_METHOD'] == "POST" && $_POST['bv'] && $_POST['save_lead'] ){
try {
- $lowercase_bv = strtolower($_POST['bv']);
+ $lowercase_bv = str_replace(' ', '_', strtolower($_POST['bv']));
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("INSERT INTO business_verticals (bv) VALUES (:bv)");
@@ -57,7 +57,7 @@
?>