I have index.php and I have a login form:
<form method=post action="login.php" id="login">
<input type="text" size="16" maxlength="30" name="login" id="login_user" />
<input type="password" name="pass" id="login_pass"/>
<input name="msubmit" type="submit" value="Login" />
</form>
How can I make sure that the form gets processed through a secure line?
Do I have to add https://?
<form method=post action="https://test.com/login.php" id="login"
Any ideas?
Thanks.
Yes, the best way is to specify
https:Even if
index.phpwas served through a secure channel, it is good practice to explicitly specifyhttpson the post action because this is the request which sends sensitive data over the wire. But it is also recommended to haveindex.phpserved throughhttpsonly.