Closed Thread Icon

Topic awaiting preservation: asp: querystring => Array (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12230" title="Pages that link to Topic awaiting preservation: asp: querystring =&amp;gt; Array (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: asp: querystring =&gt; Array <span class="small">(Page 1 of 1)</span>\

 
air_phear
Nervous Wreck (II) Inmate

From: sweden
Insane since: Jul 2001

posted posted 05-24-2002 11:23

Hi !
I decided I had to learn some asp..
And I just got my first problem:

I want to make an array from the values of a <select ..> input field..

And then check so that the array dosent contain more than 3 values...

Im stuck !


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-24-2002 14:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

air_phear
Nervous Wreck (II) Inmate

From: sweden
Insane since: Jul 2001

posted posted 05-27-2002 11:51

yeah i guess i was in a hurry or something...

what Im trying to build is 2 asp pages :
the first page has a form with 3 textfields an a select list field that contains 10 constant values (no scripting here) .
the action of the form is the second page.

On the second page I wanna check the textfields values,
then I wanna check that only 3 values from the selectlistfield were
selected, no more no less.

And if evrything is fine,
The values of all field are printed to the page..
Else an error message and a backlink is printed .

thanx in advance =)

someoneInverse
Bipolar (III) Inmate

From:
Insane since: May 2002

posted posted 05-27-2002 13:35

I'd recommend checking to see if the user has selected too many items on the client side rather than resort to this, but this bit of code should do you:

<%
strSelected = request.form("testSelect") ' testSelect is the name of the select list item
arrSelected = split(strSelected, ",")
if ubound(arrSelected) <> 2 then
response.write("selected too many or too few options")
else
response.write("selected 3 options")
end if
%>

hope it helps

air_phear
Nervous Wreck (II) Inmate

From: sweden
Insane since: Jul 2001

posted posted 05-28-2002 10:56

Yes it helped !

thanx

« BackwardsOnwards »

Show Forum Drop Down Menu