...

View Full Version : ASP Question



mr_ego
07-29-2002, 06:50 AM
ASP CODE:

<%
Set data = CreateObject ("Scripting.FileSystemObject")
Set info = data.OpenTextFile ("E:\websites\wwwschools\kgsc\" & Response.Form("page") & ".txt")

filecontent = info.ReadAll
info.close
response.write(filecontent)
%>

that's if i want it from a form submission but what if i want it from a query string? i dont know how to do this. im relatively new to ASP so i really need some help. its for a competition!

Thanks

oracleguy
07-29-2002, 06:57 AM
Originally posted by mr_ego
ASP CODE:

<%
Set data = CreateObject ("Scripting.FileSystemObject")
Set info = data.OpenTextFile ("E:\websites\wwwschools\kgsc\" & Request.QueryString("Page") & ".txt")

filecontent = info.ReadAll
info.close
response.write(filecontent)
%>


Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum