Ok, after several tries i am more and more loving appery.io !
What i was searching for, was a form that can be send per mail.
It works perfect with the jQuery POST solution like this:
precode
var handrailNickname = $("#uploadHandrail_handrailNickname").val();
var lengthEntry = $("#uploadHandrail_lengthEntry").val();
var lengthRail = $("#uploadHandrail_lengthRail").val();
var dataString = "";
dataString += 'userName=' + handrailNickname;
dataString += '&lengthEntry=' + lengthEntry;
dataString += '&lengthRail=' + lengthRail;
//alert (dataString);return false;
$.ajax({
type: "POST",
url: "http://www.mydomain.com/upload.php",
data: dataString,
success: function() {
alert("sent");
}
});
return false;
/code/pre
the upload.php fetches the POST and within a second i receive
a mail with the above mentioned inputs entered.
My question now is:
How can i attach a photo to that form?
I have a button that invokes a camera service.
The photo taken is inserted into an image element.
I think that the image element somehow is called canvas, so i see it but now
i do know know how to attach that canvas or image to my form upload.
Thanks for your time and support!
Carlos