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,
| SitePoint Sponsor |
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,
Steve
Online solutions for small businesses.
<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.php
Karl Austin :: Profile :: KDA Web Services Ltd.
Business Web Hosting :: Managed Dedicated Hosting :: From £250/m
Personal Web Hosting :: Budget Web Hosting :: From £50/y
Call 0800 542 9764 today and ask about our Cloud Hosting Platform
Bookmarks