<html> <body> <?php $form = array("Title"=>$_POST["Title"],"Author"=>$_POST["Author"]); $form = json_encode($form); echo $form ?> </body> </html>