.
This commit is contained in:
parent
e70c6210b0
commit
085c62f199
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@
|
|||
"Title"=>$_POST["Title"],
|
||||
"Author"=>$_POST["Author"]);
|
||||
$json = json_encode($form);
|
||||
echo $json;
|
||||
//echo $json;
|
||||
|
||||
|
||||
// Dieser Schritt dient nur um die Daten wieder in der Ausgabe anzeigen zu lassen,
|
||||
//muss später noch an eine andere Stelle gepackt werden 8z.B. nach dem Empfang von Daten aus der API)
|
||||
$json2= json_decode($json, true);
|
||||
$json= json_decode($json, true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -62,11 +64,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="fix">Titel</td>
|
||||
<td><?php if(isset($_POST["go"])) echo $json2['Title']; ?></td>
|
||||
<td><?php if(isset($_POST["go"])) echo $json['Title']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="fix">Autor</td>
|
||||
<td><?php if(isset($_POST["go"])) echo $json2['Author']; ?></td>
|
||||
<td><?php if(isset($_POST["go"])) echo $json['Author']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="fix">Land</td>
|
||||
|
|
Loading…
Reference in a new issue