0
I bought a Dashboard from the internet and when I came across the code I saw the following:
<input type="text" class="form-control round" id=" " placeholder="Your Username" required>
In the internet tutorials I saw that I need to take the command name=""
so you can refer it to another file.
I wanted to know the difference between command NAME=" "
for ID=""
because apparently they serve the same function or I’m wrong?
It’s right I remove the id=""
and put the name=""
? I made this change and it worked with me (validation form in the database) however I was doubtful, the ID=""
serves what?
name
you associate a name for theinput
orform
. When uploaded to PHP, you will usename
to find its value. Already theid
, it defines the identification in that code for the browser. It is used in Ajax or CSS.– CypherPotato