Save the file in an Access database and take it out of the code for people to download

Source: Internet
Author: User
Tags access database
Save the file in an Access database and take it out of the code for people to download
senddate.asp (Send interface)
<form method= "POST" enctype= "Multipart/form-data" name= "form3" action= "senddateindb.asp" >
<input type= "hidden" name= "userdept" value= "<%=firstdept%>" >
<input type= "hidden" name= "username" value= "Everyone" >
&LT;TD align= "center" ><b> Send: </b></td><td><input type= "text" name= "SendTo" size=60 Value= "<%=sendto%>" onfocus= "Document.form3.title.focus ();" ><font color=red>*</font></td>
</tr>
<tr>
&LT;TD align= "center" ><b> title:</b></td>
<td><input type=text name= "title" Size=60><font color=red>*</font></td>
</tr>
<tr>
&LT;TD align= "Center" ><b> content:</b></td>
<td><textarea name= "Content" rows= "9" cols= "></textarea></td>"
</tr>
<tr>
&LT;TD align= "center" ><b> Accessories:</b></td>
<td><input type= "File" Name= "File1" size=35> (not exceeding 100K) </td>
</tr>
<tr>
&LT;TD Align=center colspan=2>
<input type= "Submit" name= "submit" value= "Send" >
</td>
</form>
*************************************************************************
Senddateindb.asp (Save the file to be sent to the database)
<!--#INCLUDE file= "Asp/fupload.inc"-->
<!--#include file= "asp/opendb.asp"-->
<!--#include file= "asp/sqlstr.asp"-->
<!--#include file= "asp/checked.asp"-->
<!--#include file= "asp/bgsub.asp"-->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.