Current location: Hot Scripts Forums » Programming Languages » PHP » I want my form to accept attachments.


I want my form to accept attachments.

Reply
  #1 (permalink)  
Old 11-02-06, 08:56 AM
Cice Cice is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I want my form to accept attachments.

Does anyone have the code or suggestions for this? thx
Reply With Quote
  #2 (permalink)  
Old 11-02-06, 10:40 AM
odi's Avatar
odi odi is offline
Newbie Coder
 
Join Date: Oct 2006
Location: Switzerland
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
to accept attachment can mean many things.

I guess what you are looking for is a a form element to upload local files, this can be done with an input-tag:

Code:
<input name="attachment" id="attachment" type="file" />
To process the data from this field you need the global variable $_FILES. A good documentation about how to do this can be found at php.net
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for php mail form w/ attachments and required fields Sithlord999 Script Requests 0 08-11-06 04:14 AM
submit from form 1 to form 3 bypassing form 2 buzzby PHP 1 06-01-05 02:06 PM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM


All times are GMT -5. The time now is 05:44 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.