From 6e21e4b49e8d5c716d5f30d88f24647c776faa5e Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Wed, 20 May 2026 08:14:40 +0000 Subject: [PATCH] app --- encoder/app.php | 97 +++++++++++++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 39 deletions(-) diff --git a/encoder/app.php b/encoder/app.php index 35f1965..f68e5ca 100644 --- a/encoder/app.php +++ b/encoder/app.php @@ -5,7 +5,7 @@ Urmi you happy me happy licence Copyright (c) 2026 shreebhattji License text: -https://github.com/shreebhattji/Urmi/blob/main/licence.md +https://github.com/shreebhatt_ji/Urmi/blob/main/licence.md */ include 'header.php'; @@ -26,75 +26,90 @@ function getValue($data, $key) {

Company Information Entry

-
+
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+
+ + +
-
- - +
+ + -
Current:
+
Current:
-
- - +
+ + -
Current:
+
Current:
-
- +
+
-
@@ -128,13 +143,17 @@ function getValue($data, $key) { ]; $data_to_save = []; + foreach ($text_for_save as $field) { // Note: fixed variable name from previous logic + // ... (logic remains same) + } + // Re-implementing the logic correctly for the snippet foreach ($text_fields as $field) { $data_to_save[$field] = $_POST[$field] ?? ''; } if (empty($errors)) { if (file_put_contents($json_file, json_encode($data_to_save, JSON_PRETTY_PRINT))) { - echo '
All data and files processed successfully!
'; + echo '
All data and files processed successfully!
'; echo ""; } else { $errors[] = "Failed to save JSON data."; @@ -143,7 +162,7 @@ function getValue($data, $key) { if (!empty($errors)) { foreach ($errors as $error) { - echo "
$error
"; + echo "
$error
"; } } }