Re: Passing a selected value to a form by TNGgroup
TNGgroup
Wed Nov 24 10:04:57 CST 2004
Ok, indeed both forms are on the same page, so like you said if only one
form can be submitted. I have to change my structure.
Thx anyway
"Alex Goodey" <agoodey@hsfinancial.co.uk> wrote in message
news:30joqjF30ggn8U1@uni-berlin.de...
> You will have to provide some more information about what you are trying
to
> do.
>
> Are both forms on the same page?
>
> only one form can be submitted at any one time.
>
> "TNGgroup" <tng@tnggroup.com> wrote in message
> news:41a4a809$0$25057$ba620e4c@news.skynet.be...
> > Solution works as said before, but a small additional question, how can
I
> > solve 2 forms pointing to the same page ?
> >
> > "Alex Goodey" <agoodey@hsfinancial.co.uk> wrote in message
> > news:30jl06F31butjU1@uni-berlin.de...
> > > When you submit a form, all elements in the form are passed to the
> > "action"
> > > page.
> > >
> > > In your action page simply use.
> > >
> > > Request.QueryString("selectname")
> > >
> > > "TNGgroup" <tng@tnggroup.com> wrote in message
> > > news:41a489dd$0$7823$ba620e4c@news.skynet.be...
> > > > Hi,
> > > >
> > > > When I post my form, (change the form attribute into get) and in the
> > > action
> > > > specify the file which opens, I receive all my records, but what I
> need
> > is
> > > > the only the record which I selected in the list box
> > > >
> > > > I tried to look to the MS Site, but did not help a lot.
> > > >
> > > > TNG
> > > >
> > > > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> > > > news:Oqf0Z8h0EHA.1392@TK2MSFTNGP14.phx.gbl...
> > > > > TNGgroup wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Question, I have a simple form and want to submit a selected
value
> > of
> > > > > > a combo box.
> > > > > > so my combo box is named "selectname" and my form has
> > > > > > action="file.asp?" what do I have to put after the question mark
?
> > > > > >
> > > > > > Thx in advance
> > > > > >
> > > > > > Wim
> > > > > Nothing. Get rid of the "?". Depending on the method attribute of
> your
> > > > form
> > > > > element, your select element's value (there is no such thing as a
> > > combobox
> > > > > in html) will be passed without your doing a thing. If you use
> "GET",
> > > the
> > > > > form values will be automatically appended to the url's
querystring.
> > If
> > > > you
> > > > > use "POST", the values will be passed in the Form collection. Go
to
> > > > > msdn.microsoft.com/library and look up Request object, Form
element,
> > and
> > > > > Method attribute.
> > > > >
> > > > > Bob Barrows
> > > > > --
> > > > > Microsoft MVP - ASP/ASP.NET
> > > > > Please reply to the newsgroup. This email account is my spam trap
so
> I
> > > > > don't check it very often. If you must reply off-line, then remove
> the
> > > > > "NO SPAM"
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>