Welcome to WebmasterWorld Guest from 54.161.208.7

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Breaking out of https

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

Full Member

10+ Year Member

joined:Jan 27, 2005
posts: 229
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:879
votes: 2


Just do a redirect after you process the form data.
10:21 am on Mar 24, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12541
votes: 1


... using the full uri, including scheme ... obviously. Details and examples can be found on the PHP manual page for the header [php.net] function.
10:57 pm on Mar 24, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:879
votes: 2


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).