Checking for empty parameters

In PHP, add check for empty parameters (like JSP).
In Java, change status code to 403.