Previous Code Entry
Left Arrow
URL with Multiple QueryStrings
Current Code Entry
Next Code Entry
Check if Value is a Number in QueryString
Right Arrow
Check if Value exists in QueryString
Article Entry Date: April 27,2022 @ 11:13:16 / Last Updated On: February 2,2023 @ 01:40:48
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."