From 5bcfce5caa34570a40fe95d31bb8b0660a7a02a6 Mon Sep 17 00:00:00 2001 From: David Renner Date: Mon, 8 Jun 2020 12:33:06 +0200 Subject: [PATCH] form data to json per php works! --- Katalog.htm | 16 +++++++++++++--- php/catalogue_search.php | 21 ++++++++------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/Katalog.htm b/Katalog.htm index 8440c9b..f92dafd 100644 --- a/Katalog.htm +++ b/Katalog.htm @@ -31,7 +31,7 @@ Das war die alte version. -->

Eingabe

-
+ @@ -39,10 +39,20 @@ Das war die alte version. --> - + + + - + + +
diff --git a/php/catalogue_search.php b/php/catalogue_search.php index 404291c..b890c99 100644 --- a/php/catalogue_search.php +++ b/php/catalogue_search.php @@ -1,14 +1,9 @@ + + $_GET["Title"],array("Author"=>$_GET["Author"]); - - - - - - Document - - - echo json_encode($form); - - -?> \ No newline at end of file + $form = array("Title"=>$_POST["Title"],"Author"=>$_POST["Author"]); + $form = json_encode($form); + echo $form +?> + +