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

Recommended Answers

All 2 Replies

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']);	
}

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 ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.