Javascript location.search into Array.
Posted: Sat Mar 31, 2007 1:51 pm
How could I take the location.search string and turn it into an array like the php $_GET array?
For example:
location.search equals "?mode=newtopic&f=13"
This only more flexible(no fixed naming, values and number of indexes).
I think you'd probably understand what I mean.
Thanks for reading and I'd appreciate any help with this one.
For example:
location.search equals "?mode=newtopic&f=13"
Code: Select all
_GET = new Array();
_GET['mode'] = "newtopic";
_GET['f'] = 13;
I think you'd probably understand what I mean.
Thanks for reading and I'd appreciate any help with this one.