looking for browse for file upload code to enable a user to submit an attachment to an email script for my website.
free flash email forms
this code needs to redirect to a java window that lets users select a file from their machine to upload, then send that file through along with the message. thanks for any help or ideas for a newbie.[/url]
file browse for upload
Moderator: General Moderators
- trukfixer
- Forum Contributor
- Posts: 174
- Joined: Fri May 21, 2004 3:14 pm
- Location: Miami, Florida, USA
Code: Select all
echo '<FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD="POST"><input type="file" name="myfile"><input type="submit" name="submit" value="upload"></form>';as for passing the file around with JS, you will more than likely run into some issues with that plan.
Browsers don't interact well with your local filesystem by design. This is security precaution so that malicous coders can't attack your local machine when you visit their site.
I would guess that passing the file value from pop-up window (or the like) back to the parent window, will NOT work....but I *might* be wrong
Browsers don't interact well with your local filesystem by design. This is security precaution so that malicous coders can't attack your local machine when you visit their site.
I would guess that passing the file value from pop-up window (or the like) back to the parent window, will NOT work....but I *might* be wrong