
form handling; URL generation
When you submit a form to an ASP page, the Request.Form object is
populated will all the form input files.
If you have <INPUT NAME=txt1> in your HTML and it posts to an ASP page,
you can access the data that was entered into this field by using this in
your VBScript on your ASP page:
'---------------------------
Dim myVar
myVar = Request.Form("txt1")
'do something with myVar
'---------------------------
This is how you process forms in ASP.
I suggest you get a book on ASP and learn the basics. Using the Response
and Request objects are the basic fundamentals of ASP.
-Chad
Quote:
> myProg would me an asp with another VBScript running on the server side. t
> hat script would take parameters entered by the user in the form by using:
> txt = Request.QueryString("TXT")
> How to use Request.Form object? in the server-side script?
> What would be the simpliest way to do this.
> Thanks,
> Michael
> > You could do this with JavaScript.
> > Explaining how to write JavaScript is beyond the scope of this
> > group. Check out WebMonkey.com, MSDN Library or one of another
> > million JavaScript tutorial sites.
> > However, you may want to consider why you're trying to do this.
> > Why do you need form variables in the URL querystring?
> > Why not just access it from the Request.Form object?
> > -Chad
Quote:
> > > How can I get parameters from the form and concatenate them to the URL
> > > in the action field?
> > > for example, I have a form with just a text field named TXT and a
> > > submit button. after entering the string hello into the text field, the
> > > user submits the form, yielding to go to the URL:
> > > http://mySite.com/myProg?TXT=hello
> > > Thanks