How to get image location using php and send it to an applet?

reginaprague

New Member
I am creating a project which is created using Applets. In my project I am using applets to create effects for the image. Initially I did the project with just 1 image stored at the same location as the files of the project. I was calling my applet using the following code \[code\]<applet code=ImageFilterDemo width=1024 height=480> <param name=img value="http://stackoverflow.com/questions/15879086/<?php echo $file; ?>">\[/code\]And I passing the name of the image, which in this case is \[code\]1.jpg\[/code\] I tried to create a form which would help to select and upload the file using : \[code\]<form action="filter.html" method="post" enctype="multipart/form-data"> Select IMAGE : <input type="file" name="image" /> <input type="submit" value="http://stackoverflow.com/questions/15879086/Upload" /></form>\[/code\]Then I tried to get the file name of the image using a php code\[code\]<?php $file= $_FILES['image']['tmp_name']; ?>\[/code\]I am not an expert in php. I tried to see what mistake I was making but still couldn't figure out what is the mistake. NOTE : I want the applet to load the image when the file is choosen and the upload is clicked.
 
Top