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.
1 Answer
+ 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...