Given the HTML code (A) and (B) below answers the following questions: (A) <form
ID: 3771831 • Letter: G
Question
Given the HTML code (A) and (B) below answers the following questions:
(A) <form name=’login’ method=’GET’ action=’checklogin.php’>
UserName: <input name=’uname’ type=’txt’></input> Password: <input name=’password’ type=’text></input> </form>
(B) <form name=’login’ method=’POST’ action=’checklogin.php’> UserName: <input name=’uname’ type=’txt’></input> Password: <input name=’password’ type=’password’></input> </form>
1.1. Select which is more secure and explain your rational. 1.2. Provide HTML code of the same form but more secure.
subjact
Ecommerce Security
Explanation / Answer
the secound one is more secure as it has post aaction that doesnot send data to url and no ther user will be able ot see what has been send to form action .
<form name=’login’ method=’POST’ action=’checklogin.php’>
UserName: <input name=’uname’ type=’txt’></input>
Password: <input name=’password’ type=’password’></input>
Submit : <input name=’button’ type=’submit’></input> </form>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.