From 1818655021557b94a3856617fb34a323450ee664 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Tue, 23 Apr 2024 12:20:14 +0200
Subject: [PATCH] display stringa test utilizzando template

---
 htdocs/contact.php |    1 +
 ihtml/contact.tpl  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/htdocs/contact.php b/htdocs/contact.php
index cbf76bc..5782cf8 100644
--- a/htdocs/contact.php
+++ b/htdocs/contact.php
@@ -10,5 +10,6 @@
 
     echo $string;
 
+    $smarty->assign('provastring', $string);
     $smarty->display('contact.tpl');
 ?>
\ No newline at end of file
diff --git a/ihtml/contact.tpl b/ihtml/contact.tpl
index 1bf5c18..97c6a32 100644
--- a/ihtml/contact.tpl
+++ b/ihtml/contact.tpl
@@ -14,6 +14,7 @@
             <input type="text" name="prova" placeholder="metti qualcosa">
             <button type="submit">clicca qui</button>
         </form>
+        {$provastring}
     </main>
     {include file="footer.tpl"}
 </body>

--
Gitblit v1.8.0