Jump to content

Posting to SSL


haku

Recommended Posts

I have a form. I've set the action of the form to HTTPS like this:

 

<form method="post" action="https://www.example.com">

 

But when I use the firefox Live HTTP Headers plugin to check the headers, it shows the posted URL being HTTP and not HTTPS.

 

Does anyone have any idea of what I'm missing? Unfortunately, I can't post a link as the site is still in development.

Link to comment
https://forums.phpfreaks.com/topic/202077-posting-to-ssl/
Share on other sites

Turns out you can post to an SSL page from a non-SSL page. I had a javascript issue - the login form I'm creating is in a popup window that fades in when a link is clicked. The action was properly set to HTTPS, but I wasn't returning FALSE on an onclick action. Not sure exactly why that meant that it wasn't posting to HTTPS, but that's what the result was. Returning FALSE solved the problem, and the form now properly posts to the SSL page.

Link to comment
https://forums.phpfreaks.com/topic/202077-posting-to-ssl/#findComment-1060388
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.