I can convert javascript functions to php to use it on server side through:
in JS:
$("#containerphp").load("save.php", {firstValueContainer:firstValue, secValueContainer:secValue});
in php (save.php):
$firstVal = $_REQUEST['firstValueContainer'];
$secVal = $_REQUEST['secValueContainer'];
It works fine but now I need to send a image variable (var image = canvas.toDataURL("image/png");) from javascript to php. I saw that the following code works to send it but in a form (without JS):
$_FILES['name']['tmp_name'];
Anybody knows how can I convert my image from JS to php in this context?
Thank you all.