Results 1 to 2 of 2
  1. #1
    jason360 is offline Member
    Join Date
    Jul 2011
    Rep Power

    Default Java - Database posting issue

    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.fileName= "file.jpg";

    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, "", win, fail, options);

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Rep Power


    Take a look at the top left hand corner. It says "Java Forum" not "Javascript Forum".

Similar Threads

  1. Now java Job Posting
    By Ankit.Patel in forum Java Software
    Replies: 0
    Last Post: 06-28-2011, 07:51 AM
  2. Issue with MS Access database and a JAR
    By crazysniper308 in forum JDBC
    Replies: 6
    Last Post: 02-16-2011, 08:40 PM
  3. Replies: 0
    Last Post: 12-01-2009, 10:01 PM
  4. SQL database issue
    By Dublin_kopite in forum New To Java
    Replies: 1
    Last Post: 02-04-2009, 05:34 PM
  5. Posting codes and help
    By Java_Man in forum New To Java
    Replies: 2
    Last Post: 02-16-2008, 03:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts