This commit is contained in:
David Renner 2020-06-08 14:42:06 +02:00
parent 104a749340
commit 4b44a540a6
2 changed files with 8 additions and 6 deletions

View file

@ -1,9 +1,11 @@
<html> <html>
<?php <?php
$obj = json_decode($form); $obj = $_POST;
foreach($obj as $key=>$value){ $form = json_decode($obj);
foreach($form as $key=>$value){
echo $key.": ".$value."[br]"; echo $key.": ".$value."[br]";
} }
?> ?>
</html> </html>

View file

@ -1,9 +1,9 @@
<html> <html>
<body> <body>
<?php <?php
$form = array("Title"=>$_POST["Title"],"Author"=>$_POST["Author"]); $form = array("Title"=>$_POST["Title"],"Author"=>$_POST["Author"]);
$form = json_encode($form); $form = json_encode($form);
// echo $form
?> ?>
<div onload="catalogue_read.php/$form"></div>
</body> </body>
</html> </html>