From 0319f2839dcce819014e3528cfc93d6dde1de509 Mon Sep 17 00:00:00 2001 From: Bart Duisters <43420049+bartduisters@users.noreply.github.com> Date: Sat, 30 Dec 2023 19:57:31 +0100 Subject: [PATCH] fix: $_POST['name'] It currently refers to $_POST['username'], but the input field name attribute is called 'name', not 'username'. --- 10_get_post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/10_get_post.php b/10_get_post.php index d0a44cd..d4bd9dd 100644 --- a/10_get_post.php +++ b/10_get_post.php @@ -7,7 +7,7 @@ if (isset($_POST['submit'])) { // echo '

' . $GET['username'] . '

'; - echo '

' . $_POST['username'] . '

'; + echo '

' . $_POST['name'] . '

'; } ?> @@ -29,4 +29,4 @@
- \ No newline at end of file +