andrewf
06-29-2005, 10:02 PM
Hello,
I have created a simple HTML/PHP email form that allows users to upload files
to my server and then I am sent an email anytime someone uploads files.
The HTML Form looks something like this:
<form>
Name:
<input name="myTextField" type="text" id="text1" size="65">
Upload File:
<input name="myFiles[]" type="file" size="45"><br>
<input name="myFiles[]" type="file" size="45"><br>
<input name="myFiles[]" type="file" size="45"><br>
</form>
So as you can see they can enter their name and upload up to 3 files.
I have everything working fine with the PHP code except for the string of file names from the Array "myFiles[]"
For the standard Text Area I would use
$myTextField = $_POST['myTextField'];
What code do I need to capture the names of the files from the "myFiles[]" array and display them in the email that is sent off to me? It must be something special because I am using an Array... But I can't seem to figure it out....
I want the email to look like this
---------------------------------------------
Name: TOM SMITH
Upload Files: pic1.jpg, pic2.jpg, pic3.jpg
---------------------------------------------
Thanks for any help, Andrew
I have created a simple HTML/PHP email form that allows users to upload files
to my server and then I am sent an email anytime someone uploads files.
The HTML Form looks something like this:
<form>
Name:
<input name="myTextField" type="text" id="text1" size="65">
Upload File:
<input name="myFiles[]" type="file" size="45"><br>
<input name="myFiles[]" type="file" size="45"><br>
<input name="myFiles[]" type="file" size="45"><br>
</form>
So as you can see they can enter their name and upload up to 3 files.
I have everything working fine with the PHP code except for the string of file names from the Array "myFiles[]"
For the standard Text Area I would use
$myTextField = $_POST['myTextField'];
What code do I need to capture the names of the files from the "myFiles[]" array and display them in the email that is sent off to me? It must be something special because I am using an Array... But I can't seem to figure it out....
I want the email to look like this
---------------------------------------------
Name: TOM SMITH
Upload Files: pic1.jpg, pic2.jpg, pic3.jpg
---------------------------------------------
Thanks for any help, Andrew