I've got a script that checks the current page for an SSL, but I need it to work so when a user enters a URL into a form and clicks the submit button it will bring back saying yes "the URL you have entered has SSL", or if it doesn't then bring back "this site doesn't have SSL".
Here's my PHP code:
if ( !empty( $_SERVER['HTTPS'] ) ) { echo "<p>This page does not have SSL. It would be worth adding SSL to this website as it's a ranking factor</p>"; }else{ echo '<p>Good job, this page has SSL.</p>'; } Thanks in advance.
https?