From 5d1de3f09f00281cfb34e22e17dd2a6d76c1fec2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20=C5=A0krab=C3=A1nek?=
Date: Thu, 22 Feb 2024 09:37:33 +0100
Subject: [PATCH] 01maturita
---
php_procviceni_predMaturitou/01/formular.php | 19 ++++++++++++
php_procviceni_predMaturitou/01/index.php | 31 ++++++++++++++++++++
php_procviceni_predMaturitou/01/info.php | 3 ++
php_procviceni_predMaturitou/01/text.txt | 1 +
4 files changed, 54 insertions(+)
create mode 100644 php_procviceni_predMaturitou/01/formular.php
create mode 100644 php_procviceni_predMaturitou/01/index.php
create mode 100644 php_procviceni_predMaturitou/01/info.php
create mode 100644 php_procviceni_predMaturitou/01/text.txt
diff --git a/php_procviceni_predMaturitou/01/formular.php b/php_procviceni_predMaturitou/01/formular.php
new file mode 100644
index 0000000..18774e1
--- /dev/null
+++ b/php_procviceni_predMaturitou/01/formular.php
@@ -0,0 +1,19 @@
+
+$msg = "\n".$name; //vynucení nového řádku
+$msg = str_replace("\n","
",$msg);
+//zapíšeme a uložíme
+fwrite($myfile,$msg);
+fclose($myfile);
+//přesměrování
+header("Location: /");
+?>
\ No newline at end of file
diff --git a/php_procviceni_predMaturitou/01/index.php b/php_procviceni_predMaturitou/01/index.php
new file mode 100644
index 0000000..badc13e
--- /dev/null
+++ b/php_procviceni_predMaturitou/01/index.php
@@ -0,0 +1,31 @@
+
+
+
+
+
+ Document
+
+
+ ".$i.". ".$promena."
"; // můžu vládat HTML kod
+ }
+ ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/php_procviceni_predMaturitou/01/info.php b/php_procviceni_predMaturitou/01/info.php
new file mode 100644
index 0000000..6aba74a
--- /dev/null
+++ b/php_procviceni_predMaturitou/01/info.php
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/php_procviceni_predMaturitou/01/text.txt b/php_procviceni_predMaturitou/01/text.txt
new file mode 100644
index 0000000..8f44397
--- /dev/null
+++ b/php_procviceni_predMaturitou/01/text.txt
@@ -0,0 +1 @@
+
les
pes
kekx
wrum
\ No newline at end of file