homepage Welcome to WebmasterWorld Guest from 54.227.160.102
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Breaking out of https
matthewamzn

5+ Year Member



 
Msg#: 3877353 posted 2:17 am on Mar 24, 2009 (gmt 0)

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

https://www.______.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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3877353 posted 4:20 am on Mar 24, 2009 (gmt 0)

Just do a redirect after you process the form data.

coopster

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



 
Msg#: 3877353 posted 10:21 am on Mar 24, 2009 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3877353 posted 10:57 pm on Mar 24, 2009 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved