In the following HTML form I am unable to derive the username. Is it because of using “ID” instead of “NAME”? Do suggest an alternative to overcome this problem.
<form action="mailto:demo@demo" method="post" enctype="text/pain">
Username:<input type="text" id="usr"/>
Password:<input type="password" name="pwd"/>
<input type="submit"/>
</form>
Yup. From the manual:
Use the
nameproperty instead.