|
|
 |
RE: FN-FORUM: Querystring
date posted 16th January 2006 16:06
ASP is a bugger for defaulting to the wrong variable type (as everything
is variants). You have to explicily tell it *sometimes* as Sam has
suggested.=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Sam
Morgan
Sent: Monday, January 16, 2006 4:27 PM
To: Andy Macnaughton-Jones
Subject: RE: FN-FORUM: Querystring
First guess, try sel =3D cint(request.querystring("r")) otherwise it may
be treating it as a string.
Same with your other variables.
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of=20
> David J MacKillican
> Sent: 16 January 2006 17:18
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: Querystring
>=20
>=20
> Hi guys
>=20
> Right this is driving me nuts.
>=20
> All I want this script to do is evaluate the querystring, and set a=20
> class.
> But it completely ignores the querystring, and sets the default class.
> Code below, anyone any ideas?
>=20
> dim sel, id, i, r
> id =3D 1
> i =3D 1
> r =3D 0
> sel =3D request.querystring("r")
> do while r < 100
> response.write ""
> do while i < 101 %> else
> response.write "class=3Dpix"
> end if
>=20
> David J MacKillican
> http://www.djmwebservices.com your business open 24 hours
>=20
>=20
>=20
> --
> Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
> or visit www.prosperity4.com and benefit from Inland Revenue approved=20
> expenses today.
>=20
> To advertise here: http://www.freelancers.net/advertising.html
>=20
>=20
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|