View Single Post
  #2 (permalink)  
Old 08-15-2007, 12:22 AM
Josiah.Haswell Josiah.Haswell is offline
Member
 
Join Date: Aug 2007
Posts: 25
Rep Power: 0
Josiah.Haswell is on a distinguished road
Default
The String class has many useful methods for this sort of thing. I don't want to do your homework for you, but here are some pointers:

URL parameters are easy to find in a URL, e.g. prefix.yoururl.whatever<b>?param1=value1&param2=va lue2&param3=value3</b>


Try

1. Converting the URL to a string.
2. Clipping the string at the question-mark, to retain just the parameter list.
3. Using the indexOf method (for example, you could also use regular expressions to great effect here) to split the remainder into parameters and values.

Good Luck,

Joe
Reply With Quote