stevepatd Posted December 23, 2010 Share Posted December 23, 2010 I have a php program that presents a form which is hosted on a secure site. Once the form is submitted, I have a "Continue" button to open a new browser window which is not on a secure site. When that happens Windows pops up a security warning with some scary text. Users have freaked out and thought the data they just submitted on the form was now seen by everybody on the Internet. I understand there are security settings in the different browsers and I'm guessing I have no control over those, but... how can I move from an https: site to an http: site without my users getting that warning box? How can I code my own pop-up message instead of the Windows pop-up? Link to comment https://forums.phpfreaks.com/topic/222467-suppressing-browser-security-warning-pop-up/ Share on other sites More sharing options...
johnny86 Posted December 23, 2010 Share Posted December 23, 2010 I think it is not possible to surpress that error message. It's kind of for the users benefit to have security warnings. There could be a workaround for that by doing this: Change the "Continue" button to open a page under https. And in that page use javascript redirect to normal http. That way the error message should be gone. This means that the user must have javascripts enabled. But you could check in the actual login form for javascript support and then send the information with the form and based on that make javascript redirect or PHP redirect which will create the warning message. Maybe this could work. Start just by trying the javascript and if it surpresses the error then make it better. =) Link to comment https://forums.phpfreaks.com/topic/222467-suppressing-browser-security-warning-pop-up/#findComment-1150649 Share on other sites More sharing options...
requinix Posted December 23, 2010 Share Posted December 23, 2010 You're probably using the button as a form submission button. The problem is the "form submission" part. Just don't use a form. a) Use a link. You can style it to look like a button if you wish. b) Use a plain type=button button and have JavaScript do the page navigation. c) Some other option I'm forgetting. Link to comment https://forums.phpfreaks.com/topic/222467-suppressing-browser-security-warning-pop-up/#findComment-1150661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.