Time:
Scotland: Fri, 11:52 pm
Rhode Island: Fri, 6:52 pm
Florida: Fri, 6:52 pm
New Mexico: Fri, 4:52 pm
California: Fri, 3:52 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : Passing an Array in the Query String (and bookmarks)


wballz
10-19-2004, 07:53 AM
Is it possible??

I would use a long string with commas separating each value, but i want to be able to change the values contained in the array/string in a javascript onclick event. Now as i understand it you can't pass variables by reference into javascript functions so i have to resort to using an array, but after altering the data in the array i want to be able to pass it in the querystring.

e.g. pagetogoto.cfm?GroupList=#GroupList[]#

when i try this i get the error, "Complex object types cannot be converted to simple values" but GroupList is already defined as an array so the command GroupList=#GroupList[]# or GroupList=#GroupList# should work....


Oh one other thing (which i may make a new thread for), how can i link to a bookmark/anchor when i am using a query string in the URL.
I have tried the following...

e.g. pagetogoto.cfm?Variable1=#data#&Variable2=#data2###bookmark
pagetogoto.cfm?##bookmark&Variable1=#data#&Variable2=#data2#
pagetogoto.cfm##bookmark?Variable1=#data#&Variable2=#data2#

none of these seem to work... is it possible?

tempest01
10-19-2004, 03:16 PM
I know in PHP if you want to pass an array using the GET query method the query string is something like...

?blah[0]=wee&blah[1]=i%20like%20pie&blah[2]=testing

Not sure if that helps you at all though, hope it does.

mmi
10-19-2004, 09:55 PM
Hey wballz

This is PHP as well, but might be of some use:

http://forums.devshed.com/t9881/s.html