Programmers for Hire
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgrammers for Hire

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 14th, 2000, 03:17 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Need help with project to upload jpeg file & other data to an e-mail address

<i><b>Originally posted by : Tomas Clift (tclift@snet.net)</b></i><br />Need help with project! <br />Don't know if this can be done but here's what I want to accomplish:<br />Want to develope a form page in Front Page 2000 - Need ASP scripting code that will create<br />a form that person can input personal data - Name and other persoal data plus a search<br />line that will enable person to search their CPU for a file to attach with the document <br />(ie: jpeg file) when person hits submit button all data and image file will be sent to a specific<br />e-mail address.<br /><br />I'm willing to pay a freelancer for scripting that will accomplish this. <br />

Reply With Quote
  #2  
Old October 10th, 2000, 06:25 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
<i><b>Originally posted by : ManjuC (manjuc@web-xess.net)</b></i><br />Hi,<br /><br />method 1<br />-------<br /><br />If u just want to send a file using an email, u can use the following code... this will work assuming the client have a default email configured and it support files... (the file he/she want to send to u will be attached to the email as a normal attachement.) also note that u can specify a subject and the body of the text on the Form header....<br /><br />but there is a catch: u can't get input text box values this way!!! to get them u need to specify this on the form header...<br /><br />enctype="text/plain" <br /><br />but if u specify that, the file won't get attached!!! hehe... so I suggest u use 2 form tags and use 2 submit buttons... resulting in 2 emails instead of one... and as u can see this is a very primitive way to do it all.<br /><br />if u're fine with it just cut and paste the code from the dotted lines and u're on ur way. (this code will attach the file u want to upload but won't get the input textbox values)<br /><br />-----------------<br /><br /><html><br /><br /><head><br /><title>test page</title><br /></head><br /><br /><body><br /><br /><form method="POST" action="mailto:manju@ins.com.sa?Subject=This the the subject of the email&Body=hi this goes inside the body of the email"><br /> <p><input type="file" name="filename" size="20"></p><br /> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p><br /></form><br /><br /></body><br /><br /></html><br /><br />-----------------<br /><br /><br /><br />method 2<br />-------<br /><br />If u want to upload the file to a database or get the file uploaded plus the values and fire an email using CDONTS, or a specific folder in ur web server u need to write a bit of complex code... <br /><br />on the backend to grab the file. if u're familiar with ASP u can try to write it urself.<br /><br />as for the (front end) user, u need to put a input file form box... as u would insert any form item. by using the following code:<br /><br /><input type="file" name="name_this_anything_U_want"><br /><br />this will give u an empty text box plus a browse button (to select the file)<br /><br />also u should need to set the form tag to <br /><form method="POST" enctype="multipart/form-data" <br /><br />if not it won't upload the file. the enctype="multipart/form-data" is very important. <br /><br />that is it for the form goes...<br /><br />but to get the actual file from the asp u need to get the name from the file u selected to upload box using the name "name_this_anything_U_want" (as I named it above).<br /><br />to assist u in writing the code to actually get the file look at fileupload tutorials at asptoday.com or goto aspalliance.com and click on Charles Carroll and see the tutorial on fileupload.<br /><br />Or (this is easier)<br /><br />u can use a 3rd party component for file uploading. I use software atisians SAFileUP. I suggest u use a 3rd party component since it'll save a lot of hassle. this will enable u to have more control over what u upload plus lotsa options.<br /><br />hope this helps, )<br /><br />problemo? fire email my way, (manjuc@web-xess.net)<br /><br />ManjuC<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgrammers for Hire > Need help with project to upload jpeg file & other data to an e-mail address


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek