icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old October 13th, 2005, 9:40 PM   #1 (permalink)
deb
Registered User
Fresh Surpasser
 
deb's Avatar
 
Joined in Oct 2004
Lives in Alaska
14 posts
Gave thanks: 0
Thanked 0 times
Question about Forms

Hello,
Not sure if this is the right place to ask this or not. I'm working on a form and would like to add a spot for people to attach files to it. Can anyone explain to me how to do this?

Thanks in advance!
Deb
__________________
Pass15
http://www.arcticwebcreations.com/
deb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 9:53 PM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,084 posts
Gave thanks: 48
Thanked 131 times
You use this:
Code:
<input type="file" name="this" id="this" />
Don't forget to add enctype="multipart/form-data" as an attribute of the form tag.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 10:12 PM   #3 (permalink)
deb
Registered User
Fresh Surpasser
 
deb's Avatar
 
Joined in Oct 2004
Lives in Alaska
14 posts
Gave thanks: 0
Thanked 0 times
O.K. I tried the above suggestions and the form "looks" like it should. I'm able to choose files to send but the files aren't being received with the form results. Is there something else that I'm missing?
__________________
Pass15
http://www.arcticwebcreations.com/
deb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 10:22 PM   #4 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,084 posts
Gave thanks: 48
Thanked 131 times
Well, the form is perfectly OK.. how exactly are you trying to recieve them?
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 10:31 PM   #5 (permalink)
deb
Registered User
Fresh Surpasser
 
deb's Avatar
 
Joined in Oct 2004
Lives in Alaska
14 posts
Gave thanks: 0
Thanked 0 times
In the "form method" action is set to - "cgi-sys/formmail.cgi" after the url.

Thanks for helping!
__________________
Pass15
http://www.arcticwebcreations.com/
deb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 10:41 PM   #6 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,084 posts
Gave thanks: 48
Thanked 131 times
Ok, I have no idea exactly what that is, other than guessing that it's a way to send e-mails through CGI. It could be one of two things:
a) it doesn't support file attachments
b) the form input isn't named to match what's used in the script
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2005, 11:49 PM   #7 (permalink)
deb
Registered User
Fresh Surpasser
 
deb's Avatar
 
Joined in Oct 2004
Lives in Alaska
14 posts
Gave thanks: 0
Thanked 0 times
Hmm..I'll play around and see what happens. Stepping out for a bit so will post back later or tomorrow. Thanks for helping troubleshoot!
__________________
Pass15
http://www.arcticwebcreations.com/
deb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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