+ 3
The 'name' attribute is used as the name of the variable on server side. For eg. <input type="text" name="username" /> <input type="password" name="password" /> on server side (let's say PHP) they become either $_GET['username'] $_GET['password'] or $_POST['username'] $_POST['password'] depending on the "method" attribute of your form. These variables are then used for various purposes which may include user authentication, registration, and many others.
6th Nov 2016, 9:08 AM
Paul Kabira
Paul Kabira - avatar