Security of a form can be ensured by several ways some of them are:-
1. Action Attribute of the form- The form action attribute must start with https:// for ensuring the secure site.
which should also begin with https:// for ensuring the secure site.
3. Checking the URL of the form itself whether it begins with https://Any one of the condition should be obeyed by the web form else the form is not secured.