Hello Guys,
I am having no luck with my post form to mysql. It is only posting the first letter of the word/phrase for the text input fields to the mysql database. It is a photo and text post form. The photo and only first letter of text are posting to database. Please note I am using Jqtouch, jquery, and phonegap.
Thank you very much for any help. I have been putting hours with no luck.
Here is my form fields:
<input type=“text” name=“photo_caption” id=“value1” src=“” placeholder=“Title value=”" />
<input type=“text” name=“photo_details” id=“value2” src=“” placeholder=“Details” value=“” />
Here is my java script:
var options = new FileUploadOptions();
options.fileKey=“photo_filename”;
options.fileName= “file.jpg”;
//options.mimeType=“image/jpeg”;
var params = new Object();
params.photo_caption = document.getElementById(“value1”).value;
params.photo_details = document.getElementById(“value2”).value;
options.params = params;
var ft = new FileTransfer();
ft.upload(imageURI, “http://www.mysite.com/upload.php”, win, fail, options);