4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 How to create file attachments in a form
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
ardeecee
Junior WebHelper
Junior WebHelper


Joined: 13 Jun 2003
Posts: 2
Location: Hunan, China

PostPosted: Sat Jun 14, 2003 12:53 am (20 years, 10 months ago) Reply with QuoteBack to Top

Confused Obviously I am a complete novice. I have an "application" form on my Frontpage 2000 built site and want users to attach their cv's but can't for the life of me work out how to create the appropriate box that will allow users to browse their pc and attach their file prior to submitting. Thanks for your understanding.
OfflineView User's ProfileFind all posts by ardeeceeSend Personal MessageSend emailVisit Poster's Website
drathbun
WebHelper
WebHelper


Joined: 01 Mar 2003
Posts: 69
Location: Texas

PostPosted: Sat Jun 14, 2003 4:23 am (20 years, 10 months ago) Reply with QuoteBack to Top

I think you need to use the "file" type of input, as in:
Code:
<input type="file" name="uploaded_item" size="60" maxlength="256">

That includes the Browse button as well. What you need to do is code your forum to receive the uploaded file and put it in the proper location.

Dave

________________________________
Dave
Photography Site :: Query Tools Forum :: Weekend Fun
OfflineView User's ProfileFind all posts by drathbunSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Jun 14, 2003 7:28 am (20 years, 10 months ago) Reply with QuoteBack to Top

Dave, who is talking about forums? Wink

However, you do raise a point: you can't just include the client-side code to get it to work, you'll have to make sure FrontPage's script takes care of file uploads.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
drathbun
WebHelper
WebHelper


Joined: 01 Mar 2003
Posts: 69
Location: Texas

PostPosted: Sat Jun 14, 2003 8:00 am (20 years, 10 months ago) Reply with QuoteBack to Top

Daniel wrote:
Dave, who is talking about forums? Wink

Confused Sorry, got forums on the brain.

One popular method for "receiving" the uploaded process is to use perl, and include the cgi-lib module. It includes the code to do the grunt work of accepting the input stream from the browser, and converting it back into a file on the server. What you do with the file after that is up to you.

Here's some info on the perl module:

http://cgi-lib.berkeley.edu/

You may find that your host already has this module installed, it seems to be fairly common.

Dave

________________________________
Dave
Photography Site :: Query Tools Forum :: Weekend Fun
OfflineView User's ProfileFind all posts by drathbunSend Personal MessageVisit Poster's Website
ardeecee
Junior WebHelper
Junior WebHelper


Joined: 13 Jun 2003
Posts: 2
Location: Hunan, China

PostPosted: Sat Jun 14, 2003 8:33 am (20 years, 10 months ago) Reply with QuoteBack to Top

Very Happy Thanks all, that's great - it is a little out my depth but I am prepared to give it a go. Thanks again
OfflineView User's ProfileFind all posts by ardeeceeSend Personal MessageSend emailVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.240253 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme