if(isset($_GET["fname"]) && isset($_GET["lname"])){ echo htmlspecialchars($_GET["fname"], ENT_QUOTES); echo urlencode($_GET["lname"]); }