aí galera!!! eu mexia com asp e estava acostumado a usar tipo : If Request.QueryString("Categoria") = "" Then Session("Categoria") = 6 ELse Categoria = CInt(Request.QueryString("Categoria")) If (Categoria < 1) Or (Categoria > 10) Then Session("Categoria") = 6 Else Session("Categoria") = Categoria End If End If ex: www.exemplo.com.br/categoria=2 no php estou tendo dificuldades para fazer!! alguém me da uma dica?