file browse for upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xeno439
Forum Newbie
Posts: 15
Joined: Tue Nov 22, 2005 12:48 am

file browse for upload

Post by xeno439 »

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]
User avatar
trukfixer
Forum Contributor
Posts: 174
Joined: Fri May 21, 2004 3:14 pm
Location: Miami, Florida, USA

Post by trukfixer »

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>';
Jcart | fixed parse error ;)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

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 8O
Post Reply