Is there a way to check and prevent a form from being displayed if the page loads with mixed content? thus meaning the page isnt using the ssl?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you want to hide form if visitor opened page via non-ssl url. You could check prefix whether it is ssl or not. If it is not a SSL page you don’t echo the form. Is that not work?
Below script will redirect visitor to ssl page if he/she is not on ssl page. Put this to top of page:
You may use this script’s other variations