Possible Duplicate:
Use PHP to check if page was accessed with SSL
Is there any way to show up few menus only when the SSL is active with php?
Thanks
Possible Duplicate:
Use PHP to check if page was accessed with SSL
Is there any way to show up few menus only when the SSL is active with php?
Thanks
You can check to see if $_SERVER['HTTPS']
is an empty string or not:
if(!empty($_SERVER['HTTPS']))
{
echo '<a href="#">Secure Login</a>';
}