I have a page in a secure subdirectory with a form. When the form is submitted, "action=" sends the entries to a separate php file in the same subdirectory, which, using mail(), emails the entries to me and, using header (location), opens a confirmation page which can not be in a secure subdirectory. This is not a problem to Netscape, Mozilla, Opera, and I expect most other browsers. However, Internet Explorer opens a window warning that "You are about to be redirected to a connection that is not secure. The information you are sending to the current site might be retransmitted to a non-secure site... " I don't want any visitor to be confronted by this window. I am hoping there is something I can put in the php file to prevent it from appearing. Does anyone know of a way to stop IE doing this without changing the basic setup I have described?
There is one way to get IE to stop opening this useless message. Instead of using header(location), use print: print "<meta http-equiv=\"refresh\" content=\"0;URL=http://absolute_url.com/confirmation_page.php\">"; PHP: However, I need .$_SERVER['QUERY_STRING'] to be appended to the URL and however I try, I can not get it to work with print. Does anyone know how to properly append .$_SERVER['QUERY_STRING'] with print?
print '<meta http-equiv="refresh" content="0;URL=http://absolute_url.com/confirmation_page.php?'. $_SERVER['QUERY_STRING']. '">'; PHP:
Thank you, wmtips. That works. What a relief. The punctuation for this is tricky, but you obviously know your php. I am so pleased you responded to my post. That was the last problem to be solved in this project. Now the whole process works from page to page in all browsers with no unnecessary pages popping up and no doofus security warnings. Resolved!