How to submit a form that has a file included ?
| From: | Mário Gamito | Date: | Mon, 06 Jun 2005 12:00:19 +0000 |
| Subject: | How to submit a form that has a file included ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216472@lists.php.net to get a copy of this message | ||
Hi,
I want to have a form with text fields and a "browse field" for
uploading a file.
Let's say i have a form with just two fields:
<form name="form1" method="post" action="action.php">
<tr>
<td>
Employee:<br />
Name: <input name="name" type="text" id="name"
size="50">
</td>
</tr>
Employee File (a .doc):
Now, i want here a browse button, so users when clicking on it trigers
the os "File Open" box to choose the file to upload.
</form>
My question is: what is the code i need in the form ?
And the <form> tag, is it allright like it is ?
Thank you in advance.
Warm regards,
Mário Gamito