0
Where can I use the "name" attribute in html
Can i use the "name" attribute in other html elements or just the input
4 Antworten
0
IT CAN ONLY BE USED IN INPUT TAG.
BECAUSE WHEN YOU ARE SUBMITTING FORM , DATA YOU HAD FILLED IN FORM WILL GO IN (NAME:VALUE) PAIR TO SERVER.
HERE VALUE IS DATA YOU HAD ENTERED IN PARTICULAR INPUT TAG AND NAME IS name ATTRIBUTE YOU USED WITH THAT INPUT TAG.
0
IT IS USELESS IN ANY OTHER TAG AS YOU ARE NOT SUBMITTING ANY VALUE.
0
YES YOU CAN.
I'M PROVIDING YOU LINK OF SOLOLEARN PHP FORM SECTION.
https://www.sololearn.com/learn/PHP/1840/
- 1
Thank you do you know if you can use php t get a elements value or is it just possible with javascript