0

What is the use of 'name, type' attributes? What if we don't use them? and Why we should use them?

I am more confused about the 'name' attribute.

27th Sep 2016, 7:05 PM
Vaibhav
1 Réponse
+ 2
name is to clearly give a name of what you put in the field and send the value of this input to database by $_POST['name-given-to-input']. Type is simply tell the page what kind of information could this input contains like password link or text...
27th Sep 2016, 7:41 PM
Driss Baidou
Driss Baidou - avatar