Sometimes, an empty string will try to pass through a QueryString of a URL, and we need to catch these before they can get through.
Just as we did in the last two articles URL QueryString«, and URL with Multiple QueryStrings« with checking the values of the QueryString, we also need to make sure a value is given.
Our string
or
The = Equal with the double quotes; check if the value is empty. Once we know it is empty, we can display a message letting the visitor know they have passed an empty value, "No Value given."