homepage Welcome to WebmasterWorld Guest from 54.226.80.55
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
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




msg:3877355
 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




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

Just do a redirect after you process the form data.

coopster




msg:3877528
 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




msg:3878037
 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