Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload/email

Status
Not open for further replies.

p3boy

Programmer
Nov 19, 2004
7
US
I am using the following script to upload files from a website:
<HTML>
<head>
</head>
<BODY BGCOLOR="#FFFFFF">
<%
Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.Save("D:\webroot\FullTiltRoot\dplabs\clientftp")
%>
<% = Count %> files uploaded.
</BODY>
</HTML>

I would also like to generate an email when the form is submitted with name, phone number, and email address. Can this be done in the same script?

Thank you.
 
yes it can be done, but you need to supply the additional information somehow, via DB additional form elements etc, and as for additional elements, those might need to be seperate from the upload element because alot of uploader components dont support "other" elements than file

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
I will supply the additional information in textfields that are part of the same form. I am submitting the information with a button controlled by javascript via the submit() command. Can the asp script handle both types of information?
 
depends on the component, look at the documentation for aspupload, i think it does support additional form elements.

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
have to excuse me on this, first batch of research on it pointed to aspupload, i've never used persists.upload and there's not much information on it that i can see online, perhaps someone else can toss in a little more info on it if they've used it.

at this point i dont know, i guess if all else fails, see if all the form elements are accessible in the form receipt page, and that the file upload completes correctly.


[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top