jQuery form autofill

fill the form. submit ... form is autofilled by post data.

 

Demo

php
<?php
$post_json = json_encode($_POST);
?>

php javascript
var postdata = <?= $post_json ?>;

render javascript

						
						

jQuery form autofill
$("#myform").autofill( postdata );

one line
$("#myform").autofill( <?= json_encode($_POST) ?> );