Please forget my bad English.
I created a simple application using the GD library, but on form must inform the text from the image, the padding x and y padding, that will be received in DG variables in PHP: $ title, $ x and $ y.
In file form.php I have a simple form:
<form method = "POST">
Title <input type = "text">
X <input type = "text">
Y <input type = "text">
/ * Others fields * /
</ form>
I do not know how to create a json with the data from the form, and then I continue in php:
$ json = json_decode ($ jsondata, true);
json_encode($_POST)