Jump to content

Recommended Posts

Hey everyone,

 

This might seem obvious, but do you have to establish an https connection before a form is sent, or can you send the form to an https connection and have it encrypted? For some reason, I never looked into this - I just always sent the form to the user via https to be sure - and to be honest it really doesn't matter that much, but I'm just curious.

 

If my question is confusing, here are the contrasting ideas:

 

Is

<!--URL: http://www.bizlunch.net/login.php-->

Please log in!
<form action="https://www.bizlunch.net/login.php" method="post">
...
</form>

 

equivalent to

 

<!--URL: https://www.bizlunch.net/login.php-->

Please log in!
<form action="https://www.bizlunch.net/login.php" method="post">
...
</form>

 

, or is the second one the only way to ensure that the user's information is encrypted?

 

Thanks,

Kael

Link to comment
https://forums.phpfreaks.com/topic/55110-solved-when-does-https-start/
Share on other sites

Well sure you can submit to an HTTPS thats fine but keep in mind the data isn't being encrypted when it is being sent (like thorpe said above, plain text), which kind of defeats the purpose of HTTPS in the first place.

 

Example: Lets say you submitting from login.php to https://login_process.php. The fields from login.php will not be encrypted on its way to the HTTPS.

 

The short of it is, if you can stand to make all the links to the login page under the HTTPS URL, I'd recommend that. If you got SSL, might as well use it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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