I am wondering if I am attempting the impossible on one page.
CODE:
set current= cConn.Execute(S QLCurrent)
Do Until current.eof
Response.Write "<p>Current Path: <b>" & current("CPath" ) & "</p></b>"
'Response.Write "<p>Current Name: <b>" & current("Name") & "</p></b>"
'Response.Write "<p>Current contact email: <b>" & current("Contac t") &
"</p></b>"
current.movenex t
Loop
'start of self posting form
%>
<form action="start.a sp" method="post">
<P>What is the location?<BR><I NPUT id=PPath name=PPath><br>
<INPUT id=submit type=submit value=Submit name=submit></P></form>
<%
'end of self posting form
PPath=request.F orm("PPath")
on error resume next
Response.Write PPath & "<br>"
Dim objFSO
Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
Dim objFolder
set objFolder = objFSO.GetFolde r("PPath")
dim objfile
END CODE:
As you can see I'm attempting to run a form in my asp page and then take the
input from that form and then use it further down the page.
Well I use the input as a physical path for the FSO call I use. As long as
I have the on error resume next I can by-pass the error I would get until
the user actually submits the form.
So now to my question, is it possible 'hide' the FSO call until the form is
submitted? I would prefer to keep all this on one page instead of posting
and using request.form on another webpage.
Thanks for any assistance.
CODE:
set current= cConn.Execute(S QLCurrent)
Do Until current.eof
Response.Write "<p>Current Path: <b>" & current("CPath" ) & "</p></b>"
'Response.Write "<p>Current Name: <b>" & current("Name") & "</p></b>"
'Response.Write "<p>Current contact email: <b>" & current("Contac t") &
"</p></b>"
current.movenex t
Loop
'start of self posting form
%>
<form action="start.a sp" method="post">
<P>What is the location?<BR><I NPUT id=PPath name=PPath><br>
<INPUT id=submit type=submit value=Submit name=submit></P></form>
<%
'end of self posting form
PPath=request.F orm("PPath")
on error resume next
Response.Write PPath & "<br>"
Dim objFSO
Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
Dim objFolder
set objFolder = objFSO.GetFolde r("PPath")
dim objfile
END CODE:
As you can see I'm attempting to run a form in my asp page and then take the
input from that form and then use it further down the page.
Well I use the input as a physical path for the FSO call I use. As long as
I have the on error resume next I can by-pass the error I would get until
the user actually submits the form.
So now to my question, is it possible 'hide' the FSO call until the form is
submitted? I would prefer to keep all this on one page instead of posting
and using request.form on another webpage.
Thanks for any assistance.
Comment