If we would like to pass values through a form or an URL, then we need to encode and to decode them using htmlspecialchars() and urlencode().