SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: mail a file with form
Hybrid View
-
Jan 7, 2001, 19:59 #1
- Join Date
- Jan 2001
- Posts
- 81
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
could some one please tell me the best way to enable a user to attach a file when they fill out a form?
thanks,
-
Jan 8, 2001, 07:49 #2
- Join Date
- Jul 1999
- Location
- Derbyshire, UK
- Posts
- 4,411
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<form enctype="multipart/form-data" action="someserversidescript.php" method="post">
<input type="file" name="somename">
</form>
Will allow a user to attach a file to a form, you will then need to specify a serverside script in the action attribute which will handle the file once it has been uploaded.
If you are working in PHP I would suggest reading this:
http://www.php.net/manual/features.file-upload.phpKarl Austin :: Profile :: KDA Web Services Ltd.
Business Web Hosting :: Managed Dedicated Hosting
Call 0800 542 9764 today and ask how we can help your business grow.
Bookmarks