I am a beginner in HTTPS technology :(. I have some doubt regarding the HTTPS implementation.
suppose I have a registration form
http://www.sitename
HTTPS involves many layers and they are all there to ensure that your HTTP communication over the wire is encrypted and secure. One of the mechanisms it uses to ensure that security, is to prove to the client that the server is actually who he says he is and not someone who pretending to be the server. This is achieved using server certificates that are issued by certificate authorities that most clients trust.
Thus, you would need a few things for your form to work over HTTPS securely:
"www.sitename.com"
)For your, register.php
page there won't be a difference between clients that come from HTTPS or HTTP, your handling will be the same. However, if you want to force users to use HTTPS then you need to first check to see if the request is plain HTTP and if it is redirect the user to the same page with the HTTPS protocol. That way no one can inadvertently use the insecure address.