Question : Passing Variables in URL String

I need to get variables from a URL String from a form entry, run an If-Then Function, with the result being a redirect to the appropriate URL.

www.mysite.com?DoctorCode=John&State=VA

If DoctorCode=John and State=VA,MD,or DC  then go www.site1.com

If DoctorCode not equal John, then go www.site2.com

Please forgive the lack of prpoer syntax...I am somewhat new to Javascript.

Answer : Passing Variables in URL String

Great - would be good with some more points too :)
Random Solutions  
 
programming4us programming4us