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

 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?
Who is Participating?
n_sachin1Connect With a Mentor Commented:
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
cowboyprintAuthor Commented:
Where exactly should I put the code?
n_sachin1Connect With a Mentor Commented:
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.

have the above in a single line ignoring the wrap
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.