in reply to CGI + safeguards

You are testing values of both parameters, just change && with or.

Ciao, Valerio