From 65f27613bef9d51d1300915dba678fe7921015cf Mon Sep 17 00:00:00 2001 From: Francisco P Date: Tue, 27 Apr 2021 22:58:58 -0300 Subject: [PATCH] El codigo de HTML fue trasladado a un nuervo archivo PHP. Fue un quilombo --- backEnd.php | 6 ++++-- formulario.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 20 -------------------- 3 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 formulario.php delete mode 100644 index.html diff --git a/backEnd.php b/backEnd.php index 82515d8..c5a6a41 100644 --- a/backEnd.php +++ b/backEnd.php @@ -4,8 +4,10 @@ echo print_r($_POST); if (!isset($_POST['sumbit'])) { header ('Location: index.html'); -}; +} -$name = $_POST; +echo 'hola'; + +$name = $_POST['name']; ?> \ No newline at end of file diff --git a/formulario.php b/formulario.php new file mode 100644 index 0000000..5d781c6 --- /dev/null +++ b/formulario.php @@ -0,0 +1,50 @@ + + + + + + + + + Formulario + + + +
+
+ + + + +
+
+

+ + diff --git a/index.html b/index.html deleted file mode 100644 index 24c8b93..0000000 --- a/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - Formulario - - - -
-
- - - - -
-
- - \ No newline at end of file