hi all,
i am having a problem with the .split function. i want to split a sting twice so i can get my vars but the second time i split the string i get a comma inplace of the the specified spliter e.g.
but when i do the second split it returns this string
"c_type,Any" instead of just "Any"
this has been driving me mad for 2 hours
Any help would be Greatfully appreciated
Simon
i am having a problem with the .split function. i want to split a sting twice so i can get my vars but the second time i split the string i get a comma inplace of the the specified spliter e.g.
Code:
myString = "c_type=Any&c_model=Any&c_min=0&c_max=1000000
"
splitString = myString.split("&");
tempstring = splitString[0]; //the first item in the array
tempstring2 = tempstring.split('=');
"c_type,Any" instead of just "Any"
this has been driving me mad for 2 hours
Any help would be Greatfully appreciated
Simon