0

Hi,
I have a single page website. It contains only a form to signup.. and I want to make it secure.

I have self signed certificate to test. My admin has setup a self signed certificate. But I don't know how to access it. I want to impliment it in my form and want to make my form https. I will buy a certificate for this after this success. I am doing this first time.

Thanks....

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by bimaljr
0

if the user is viewing your form via https and you post relatively, the form will post https. You can test to see if the user is viewing your form via https by testing with:

if(!isset($_SERVER['HTTPS']))
{
	header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);	
}
0

Thank you for reply.

But please provide more info with a sample form. because I am doing this first time.
Example I want to collect three text data.. 1) Full name 2) Username 3) password... I am using $_POST to get all this data... so, how to make this form secure and collect the results securely ?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.