Hello there !
I need to:
1) let my web user get an image in his computer
2) let this file be embedded in a HTML document, like we get a .txt
file, like this:
<%
If Request.ServerVariables("REQUEST_METHOD")="POST" Then
Per_Name=Request.Form("txt1")
Filename=Request.Form("txt2")
Dim fs
Dim txtfile
Dim strFile
Dim objFile
strFile=Server.MapPath(Filename&".html")
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = fs.CreateTextFile(strFile, 8, True)
Content=Request.Form("Content")
Body=("<html><title>"&Per_Name&"'s Document</title>"&_
"<body bgcolor=Royalblue><font color=snow face=tahoma size=2><br>"&_
"<h2 align=center>Hai "&Per_Name&" Your page's here...</h2><br>"&_
"<h2 align=center>Look at the URL and the document title</h2>"&_
"<br><table bgcolor=white border=0 width=50% align=center
valign=center>"&_
"<tr><td width=50%
align=center>"&Content&"</td></tr></font></body></html>")
objFile.writeline(Body)
set txtfile=nothing
set fs=nothing
objfile.close
Response.Redirect Filename&".html"
End If
%>
How can I do ?
Thanks for all, since now.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/05
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/