parse string

How do I parse the URL string: arduino.local/wepage99.htm?cmd=digital&pin=7&val=high
to make true the if statement below

if( “cmd=digital” and “pin=7” and “val=high”)
{
digitalWrite(7, HIGH);
}
Thanks

i think a look at this will help you

http://arduino.cc/en/Tutorial/Bridge