Need help submitting an html form with java uploader on my website

Posted on 2008-11-12
Last Modified: 2012-05-05
 I am new to web programming.

What software I'm using
  I am using a java uploader so that my website users can upload large files to my server. I purchased a java uploader called "myuploader". It works fine. I am using php to submit the data to my server. I am being hosted by network solutions.  Here is a link to the java uploader on my website if you want to see it I am using dreamweaver cs3 as my software.

Here is an example of the code for my java uploader
<applet name="uploadApplet" code="javaatwork.myuploader.UploadApplet.class"
   archive="myuploader-standard-signed-1.11.jar, labels.jar" width="400"  height="250">
   <param name="uploadURL" value="">
   <param name="successURL" value="">

The problem

I also purchased a java applet to be able to submit html form data with the file upload. Here's the example code they provided to send the form.
1. myuploader-form-standard-v13.jar

- Put the jar file in the same directory as the jars of MyUploader.
- Put the jar in the applet tag.
- Add the "form" parameter to the applet tag.
- Fill in your form name.
- Add 'mayscript' at the end of the first line of the applet tag.


<applet name="uploadApplet" code="javaatwork.myuploader.UploadApplet.class"
   archive="myuploader-free-signed-v17.jar, myuploader-form-standard-v13.jar,
   labels.jar" width="400"  height="250" mayscript>
   <param name="uploadURL" value="">
   <param name="successURL" value="">
   <param name="form" value="<your form name>">

I would like to be able to submit the users name, contact phone#, email, and company as text with the file that they upload. Can you please provide instructions and code on how I should do so?
Question by:cowboyprint
    LVL 8

    Accepted Solution

    Since this is an applet code, add query parameters to the url.
    Then, in your landing page, where the applet actually posts the file, read it off from the query string. etc...

    Since its your applet that sends the data, and probably the applet does not expose a 'param' for you, the above should do the job for you

    Author Comment

    Where exactly should I put the code?
    LVL 8

    Assisted Solution

    In the applet tag, where you have the uploadURL param, modify it to
     <param name="uploadURL" value=" ">

    The additions to your url is in bold above.
    When the URL is hit with the file, in your server application code that executes for this url hit(servlet/jsp/php etc.), you can get the query string.

    LVL 8

    Expert Comment

    have the above in a single line ignoring the wrap

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now