Hi,
Is it possible to allow the user to attach a file (maybe via copy & paste) into some sort of INPUT type on a FORM? I need the email recipient to receive both the text and the attached file.
Thanks in advance,
Neil.
Hi,
Is it possible to allow the user to attach a file (maybe via copy & paste) into some sort of INPUT type on a FORM? I need the email recipient to receive both the text and the attached file.
Thanks in advance,
Neil.
<input type="file"> is what you're looking for. Be aware that you'll need to use an appropriate backend, though.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks Twey.
So, by doing this, the field will accept a 'pasted' file?
Or, is 'file' expected to be a pre-defined "name.ext" ..?
Can you ellaborate please - re the backend piece?
Thanks again,
N.
Yes, it needs to be typed in, but a "browse" button is also provided to do this automatically.Or, is 'file' expected to be a pre-defined "name.ext" ..?
http://uk.php.net/features.file-uploadCan you ellaborate please - re the backend piece?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks Twey - will give it a whirl.
Cheers,
N.
Bookmarks