navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Form with Fields to email plus file Upload?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Form with Fields to email plus file Upload?
Page: [1]
 
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
Form with Fields to email plus file Upload? - 5/6/2008 23:54:02   
I finally figured out the file upload thing. but what i want is a form that has a few fields of information about the uploader along with a file upload. I would like the text fields to be emailed to me while the file is uploaded. i can get the file to upload fine but when i put in an email address it gives me an error? is this possible to have both types of input in the same form, if not how is it possible to do what i want?

thanks
Mitsuriko

 

Posts: 5
Joined: 4/28/2008
From: The bitter end
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 3:30:00   
What kind of script are you using to upload the file?

(in reply to ryanjantz)
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 10:38:27   
I am using the standard FP2003 Upload File Form, But here is the complete code... I don't know why there so many font codes in here The whole thing is the same font and i haven't touched the font, but anyway...

 <form method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
     <!--webbot bot="FileUpload" u-file="../Uploads/Uploads Info.htm" s-format="HTML/BR" s-label-fields="TRUE" b-reverse-chronology="FALSE" b-email-label-fields="TRUE" b-email-subject-from-field="FALSE" s-email-subject="New File Upload" s-destination="BreakFreeMinistries.com/Uploads/" s-category s-assignedto s-reviewstatus b-process-metainfo="FALSE" s-builtin-fields s-form-fields="Name Email Church City_St Type_of_File Description Upload " u-confirmation-url="thanks.htm" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><input TYPE="hidden" NAME="_charset_" VALUE="windows-1252"><!--webbot bot="FileUpload" endspan i-checksum="58985" --><p align="left" style="line-height: 200%; margin-bottom: 0">
     <font face="Arial"><b><font size="2" color="#FFFFFF">           
     *Name: </font><font color="#FFFFFF">
     <input type="text" name="Name" size="28"></font></b></font></p>
     <p align="left" style="line-height: 200%; margin-bottom: 0">
     <font face="Arial"><b><font size="2" color="#FFFFFF">           
     *Email: </font><font color="#FFFFFF">
     <input type="text" name="Email" size="28"></font></b></font></p>
     <p align="left" style="line-height: 200%; margin-bottom: 0"><b>
     <font face="Arial" size="2" color="#FFFFFF">          
     Church</font></b><font face="Arial"><b><font size="2" color="#FFFFFF">:
     </font><font color="#FFFFFF"><input type="text" name="Church" size="28"></font></b></font></p>
     <p align="left" style="line-height: 200%; margin-bottom: 0"><b>
     <font face="Arial" size="2" color="#FFFFFF">        
     </font></b><font face="Arial"><b><font size="2" color="#FFFFFF"> City, 
     St: </font><font color="#FFFFFF">
     <input type="text" name="City_St" size="28"></font></b></font></p>
     <p align="left" style="line-height: 200%; margin-bottom: 0"><b>
     <font face="Arial" size="2" color="#FFFFFF"> *Type of File: </font>
     </b><select size="1" name="Type_of_File">
     <option>Bible Study</option>
     <option>Powerpoint Game</option>
     <option>Video - For Illustration</option>
     <option>Video - For Fun</option>
     <option>Other</option>
     </select></p>
     <p align="left" style="line-height: 200%; margin-bottom: 0"><b>
     <font face="Arial" size="2" color="#FFFFFF">  *Description: </font>
     </b><font face="Arial"><b><font color="#FFFFFF">
     <input type="text" name="Description" size="28"></font></b></font></p>
     <p align="center"> </p>
     <p align="left"><font face="Arial" color="#FFFFFF"><b>      
     <font size="2">  *Upload:</font>
     <input type="file" name="Upload" size="20"></b></font></p>
     <p align="center"> </p>
     <p align="center" style="margin-bottom: -6px">
     <font face="Arial" color="#FFFFFF"><b>
     <input type="submit" value="Upload My File!" name="Button"></b></font></p>
     <p align="center" style="margin-bottom: -6px"> </p>
     <p align="center" style="margin-bottom: -6px">
     <font face="Arial" color="#FFFFFF" size="2">Be patient after you click 
     upload, depending on your connection and the file size it may take a little 
     bit to upload. You will receive a confirmation message when the upload is 
     complete!</font></p>
     <p align="center"> </p>
     <p align="center">
     <font face="Arial" color="#FFFFFF" style="font-size: 9pt">* = required 
     fields</font></p>
  </form>

(in reply to Mitsuriko)
rdouglass

 

Posts: 9137
From: Biddeford, ME USA
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 11:33:11   
The problem with 'standard' uploading forms is that you cannot do any "Request.Form"stuff at the same time as you're uploading so you end up creating 2 separate forms instead; one for the file upload and 1 for the fields to use in databases and such.

I am convinced you can't do it on 1 form with the FrontPage 'bots but I'm not a FP expert and others may know a way I do not.

ASPUpload (by Persist) allows you to do that but it's not free. It's licensed at the server and is a server component (not client or FrontPage plug in kind of thing) but your host may already have it; it is very popular and many do have it.

I use it and it's definitely the way to do multi-part uploads IMO. I can upload a full standard-field form as well as multiple files all on 1 form and do a lot more things with it once it's uploaded (on the server). To me, it was well worth the $200 just in the time it saves.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to ryanjantz)
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 12:01:33   
my host is godaddy and they say they have aspupload by persits by i can't for the life of me figure it out. I keep getting errors like this one...

"Persits.Upload.1 error '800a0028'

This feature has been disabled by system administrator. Use SaveVirtual instead.

/BreakFreeMinistries.com/ASPUpload/progress_upload.asp, line 17 "

any advice?

(in reply to rdouglass)
rdouglass

 

Posts: 9137
From: Biddeford, ME USA
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 12:37:38   
quote:

any advice?


Have you referred to their online manual or their examples? They are quite good actually and the examples are organized by specific tasks. It's really a rare item when you can actually find stuff in a manual. :)

But esentially to SaveVirtual, you just ommit the path and the component stores it in memory as opposed to a physical location on disk. Then you send/save/whatever the file after the upload actually happens.

Try changing the line that looks something like this:

Upload.Save uploadLocation

to just:

Upload.Save

and refer to the manual here for more specific SaveVirtual stuff:

http://www.aspupload.com/manual_memory.html

Hope that helps.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to ryanjantz)
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 13:23:37   
thanks! that let me save a file. how can i actually pull it out of memory and put it on the server then? i can't find that anywhere.

(in reply to rdouglass)
rdouglass

 

Posts: 9137
From: Biddeford, ME USA
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 13:29:39   
Did you check that link I posted? I see it right on that page; in fact, several examples.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to ryanjantz)
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 15:34:21   
yes i read it, the only thing i see is that you the files "can be accessed via the Upload.Files collection". but what is that i don't see anything else about and have nothing in my ASPUpload called that?

(in reply to rdouglass)
rdouglass

 

Posts: 9137
From: Biddeford, ME USA
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 16:17:28   
It would look something like this:

...
' Build path string ***Put the physical path to your upload dir here
Path = "c:\upload\"

' Save files to it. Our form has only one file item
' but this code is generic.
For Each File in Upload.Files
   File.SaveAs Path & "\" & File.FileName
   Response.Write "File saved as " & File.Path & "<BR>"
Next
...


Just remember you must call "Upload.Save" first. Seems backwards I know...

That help any?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to ryanjantz)
ryanjantz

 

Posts: 25
Joined: 8/15/2006
Status: offline

 
RE: Form with Fields to email plus file Upload? - 5/7/2008 21:30:44   
I have removed the info after Upload.Save which allowed me to actually upload, but i don't see anything from the code you posted in any of the asp files that i have from ASPUpload. Where should it be found? This is the only thing that is my progress_upload.asp

<BODY>

<%

Set Upload = Server.CreateObject("Persits.Upload")

' This is needed to enable the progress indicator
Upload.ProgressID = Request.QueryString("PID")

Count = Upload.Save

Response.Write Count & " file(s) uploaded to c:\upload"

%>


</BODY>


Thank you for all your help, I'm just not getting this ASP stuff for some reason.

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Form with Fields to email plus file Upload?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts