for what the name attribute is used for?(inside input tag) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

for what the name attribute is used for?(inside input tag)

28th Jun 2016, 10:20 AM
Pratyush Kumar
Pratyush Kumar - avatar
3 Answers
+ 1
For proccess input value. In server side for access to value with name
28th Jun 2016, 2:16 PM
M0H4MM4D
M0H4MM4D - avatar
0
name for called your PHP file
29th Jun 2016, 7:14 AM
suhendra fajrianor
suhendra fajrianor - avatar
0
ex: <input type="text" name="user" placeholder="Enter username" /> when u will try to retrieve user input data you must need to use like this... to sanitize or work with them $_POST["user"] / $_GET["user"] that's the use of name attribute .
11th Jul 2016, 3:03 PM
SOLEYMAN
SOLEYMAN - avatar