|
I have written an .asp file that has a little html code in it. The file is located on my web site. It is called and supplied with a 'filename' and 'data' which is used to write a new .html page on my web site. I would like to be able to allow the user to jump to this new .html page after the file is written.
The filename is received by the .asp portion of the page, but how do I code the .html submit button to know the filename so it can jump to the new page.
The .asp page code is below:
<% runat="Server"
if request.form.count > 0 then
dim FSO
dim objstream
dim strtext
dim strcomment
dim jaddress
const TristateFalse = 0
set FSO=createobject("Scripting.filesystemobject")
strtext = "reports.mywebpage.com\" & request.form("title") & ".html"
strcomment = request.form("comment")
%>
<%
function getjaddress
getjaddress="http://www.reports.mywebpage.com\" & request.form("title") & ".html"
end function
%>
<HTML>
<HEAD>
<TITLE> Services Report </TITLE>
</HEAD>
<BODY>
<form name="form1" action=getjaddress method="GET">
<input type="Submit" value="View My Report" >
<br><br>
</form>
</BODY>
</HTML>
<%
Set objStream = FSO.CreateTextFile(strtext , True, TristateFalse)
With objstream
.WriteLine strcomment
.close
End With
set FSO=nothing
set objstream=nothing
set strtext=nothing
set strcomment=nothing
end if
%>
|
|
|
|
|
|
|
// |