From 387dc7ac33a0a9be0531b04eb812982e19d62bbb Mon Sep 17 00:00:00 2001 From: "karthikeyan.manivasagam" Date: Fri, 26 Apr 2024 16:16:00 +0530 Subject: [PATCH] tweaked with better UI --- Consumer/index.php | 41 +++++++++++++++++++++--- Producer/index.php | 49 ++++++++++++++++++++++++----- Producer/{register.php => send.php} | 4 +-- k8s/consumer-deployment.yaml | 2 +- k8s/producer-deployment.yaml | 2 +- 5 files changed, 82 insertions(+), 16 deletions(-) rename Producer/{register.php => send.php} (87%) diff --git a/Consumer/index.php b/Consumer/index.php index 067d310..619ae62 100644 --- a/Consumer/index.php +++ b/Consumer/index.php @@ -1,22 +1,55 @@ + - + - + + + Message Form + +
'; -echo file_get_contents("messages.txt"); + + +echo file_get_contents($filename); + + + echo '
diff --git a/Producer/index.php b/Producer/index.php index 683fd9f..e87f9bd 100644 --- a/Producer/index.php +++ b/Producer/index.php @@ -1,28 +1,61 @@ + - + - + + + Message Form + + '; +if (isset($_SESSION['message'])) { + echo ''; + unset($_SESSION['message']); +} +echo '
+

Message Form

-
-

Registration Form

-
+
- +
-
diff --git a/Producer/register.php b/Producer/send.php similarity index 87% rename from Producer/register.php rename to Producer/send.php index 7f4c4d7..3599ba3 100644 --- a/Producer/register.php +++ b/Producer/send.php @@ -1,5 +1,5 @@