![]() |
PHP Mail - Help sending multiple attachments
I am attempting to send multiple attachments, which a user will attach using an input type file. I can get one e-mail to send with an attachment without a problem, but I get lost when I need to add a second attachment or even a third attachment.
Code:
<p>File Attachment: <input type='file' name='fileatt' /></p>PHP Code:
|
You can use arrays for that:
HTML Code:
<p>File Attachment: <input type='file' name='fileatt[]' /></p>PHP Code:
|
Well, I don't mind dong the Javascript part of it if you want that, but just a word of advice on the Javascript side of things. When you add new elements to the form and hide them, Safari actually classes that as a breach of security and doesn't include the item when you submit the form, so the best way to do it is to simply use the position CSS attribute to place an element over the top of the other one. Therefore the one below is still technically visible to the browser, just not to the user.
|
I'm sorry for oppening an very old thread but I have the same problem.
@sjaq method. HTML Code:
<p>File Attachment: <input type='file' name='attachment[]' /></p>PHP Code:
|
Quote:
MAIL ID: razsince1983@gmail.com |
Need a feedback form with attached file
Can you plz send the file for which a user will attach using an input type file. I am searching for it and I cant get. It would be helpful if you help me in this. THanks.
MAIL ID: razsince1983@gmail.com |
| All times are GMT. The time now is 05:21 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0