Forum Moderators: coopster

Message Too Old, No Replies

Breaking out of https

         

matthewamzn

2:17 am on Mar 24, 2009 (gmt 0)

10+ Year Member



On my site I have a link to a secure form:

[______.com...]

After they submit the form I want them to get back to the regular http site. Is there a way I can tell the browser to only encrypt the page containing the form?

eeek

4:20 am on Mar 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just do a redirect after you process the form data.

coopster

10:21 am on Mar 24, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



... using the full uri, including scheme ... obviously. Details and examples can be found on the PHP manual page for the header [php.net] function.

eeek

10:57 pm on Mar 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



using the full uri

You should always use the full URI in the location header. The spec doesn't allow for relative links (though they'll work with many browsers).