
how do I format an .asp page into a single page
That would be possible, enless you dont have a Submit button :)
I rarely use one, Mostly I have a button, but it's called 'Buttun', and not;
'submit'.
This one calls clientside validation script for the form, and the script
will submit the form. Thusly, the SUBMIT will not be present in the
Request.Form collection.
Jim
Quote:
> That seems rather useless. The submit button is included in the
> Request.Form collection, so, with your example in mind, you'd just have to
> modify it like this:
> <%
> If request.form("SUBMIT")="Submit" THEN
> Response.Write("You have pushed the Submit Button")
> Else
> %>
> <FORM ACTION="FORM.ASP" METHOD="POST">
> <INPUT TYPE="SUBMIT" Value = "Submit">
> </FORM>
> <%
> End If
> %>
> No need for a hidden "MESSAGE" field.
> Scott Schluer
> Web/ASP Developer
> > I think what you're asking is to be able to submit information from a
form
> > to the same page. If this is what you're looking for they way I do it
and
> > have seen from other ASP programmers is to submit a hidden field from
> within
> > the FORM and then check for the value of that field from your ASP.
> > The code for a ASP file named FORM.ASP might look something like this.
> > <%
> > If request.form("MESSAGE")="True" THEN
> > Response.Write("You have pushed the Submit Button")
> > Else
> > %>
> > <FORM ACTION="FORM.ASP" METHOD="POST">
> > <INPUT TYPE="SUBMIT" Value = "Submit">
> > <INPUT TYPE="HIDDEN" NAME="Message" VALUE="True">
> > </FORM>
> > <%
> > End If
> > %>
> > Hope this helps you out.
> > > I am modifing some exsisting pages that I didn't create. The pages
are
> > > using several forms that call data from the database.
> > > We start with a search form that returns results into radiobuttons.
You
> > > then select the button and it returns results from the sql.
> > > My question. I am a beginer, I normally create this using several
> > > pages. The pages however are done in a single .asp page with actions.
> > > How do I accomplish this? I am having trouble following the page
> > > structure. Can someone point me to the right place.
> > > Thanks
> > > --
> > > David Anderson
> > > Project sciLINKS
> > > http://www.scilinks.org
> > > 1840 Wilson Blvd
> > > Arlington, VA 22201
> > > (703) 312-9297
> > > (703) 526-9754 FAX