I'm trying to make a page from where I'll send a verification code to the email. Suppose, the mail will contain this link
http://www.something.com/confirmation.php?passkey=123
In the confirmation.php page, I'll write
$_GET['passkey'];
So, I'll receive the passkey there.
But if someone doesn't provide a passkey and try to to go to the page
http://www.something.com/confirmation.php
they'll see an error like "Notice: Undefined index: passkey in http://www.something.com/confirmation.php on line 7".
Now, I want a code, where if someone provides a passkey, it'll be received. But if someone doesn't provide any passkey, it'll show no error. It will automatically check, if someone has provided a passkey or generally trying to access to the page. How can this be done?