p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: request.form not picking up data


Message #1 by "Dave Savage" <dave@w...> on Thu, 8 Aug 2002 01:19:41 +0100
Ah no, my error completely!
Of course, it was a multiple select box, and I hadn't selected any options!

However, I don't want users to have to reselect the data they have just put
into the box...
So I went back to the appending a string to the form action via javascript -
and that works! All I have to do then is strip the data I need out of the
string and stick it in an array. Perfect.

-----Original Message-----
From: Joe Hughes [mailto:JoeHughes@M...]
Sent: 08 August 2002 09:28
To: Pro ASP HowTo
Subject: [proasp_howto] Re: request.form not picking up data


Dave,

Have you tried doing a response.write on just request.form or
request.querystring, without requesting a particular item in the collection

e.g
Response.write(Request.Form)
Response.write(Request.Querystring)

Another test it to put a static form item just before the select box, and
see if that gets submitted with the form. I suppose a simple <INPUT
TYPE=HIDDEN NAME=TEST VALUE=TEST> Would do.

Where you said "populate the right hand side box" - is this box a <SELECT>
box or a <INPUT TYPE=TEXT> box? If it is a select box, is it a multiple
select box, or a "DropDown"? If it is a multiple select box, it will only
submit data when you select something. If its a dropdown is should submit
the default selection. I think the only test is to put a couple of plain old
INPUTs on the form in and around the dynamic field. Submit the form, and see
if the data from the static items is there. If it isn't, then i think the
form tags may be in the wrong place or the form method may be wrong.

Give that a go and tell us how you get on

Joe




----- Original Message -----
From: "Dave Savage" <dave@w...>
To: "Pro ASP HowTo" <proasp_howto@p...>
Sent: Thursday, August 08, 2002 1:19 AM
Subject: [proasp_howto] request.form not picking up data


> Hi,
> I have a section within my web app which I have styled much like (say) MS
> Access Query Wizard, where there is a long select box of options on the
left
> side and an empty select box on the right side. With use of javascript, I
> can double click on my left hand side options and dynamically populate the
> right hand side box. This works fine - by use of javascript alerts etc I
> know that the correct option values and text have been sent over, plus I
can
> see it visually. However, when I submit the form ASP will not acknowledge
> that the dynamically populated field in the form has any data in it, this
is
> obviously a great problem in trying to update the db from these values!
> I have even tried using javascript to append an array of data to the
action
> method of form.submit() and use javascript to submit the form. Still ASP
> wont recognise the data.
>
> Anyone have any ideas on this issue?
>
> TIA
> Dave
>
>
>




  Return to Index