0
Difference between name and value ? and value=sumbit ?
Html thanks
5 Réponses
+ 3
Check those pls.
https://www.sololearn.com/discuss/33955/?ref=app
https://www.sololearn.com/discuss/782226/?ref=app
https://www.sololearn.com/discuss/474892/?ref=app
https://www.sololearn.com/discuss/79402/?ref=app
https://www.sololearn.com/discuss/1055148/?ref=app
https://www.sololearn.com/discuss/1749813/?ref=app
+ 1
I think you are talking about input tag. Name attribute is used, for exemple, to link this input with a LABEL tag. And the value attribute is the default value of the input.
+ 1
Uni Versal
You will better know this when you use these submit data in any php page.
That data you submit is send as name value pair to the page you described in action attribute.
The name you have already given in attribute is important if you want to submit and use firm data. The value is the the text we fill in the input is it's value.
Also
Edson it's not the name use in label it is I'd for labeling we use
<label for="name">name</label>
<input Id="name" name="user" />
0
Yes i am talking about this only ,it's not figuring out,
while with radio ,checkbox code is like this <input type="radio" name="gender" value="male">male <br/> etc..
When writing for submit button code be like <input type="submit" value="submit">
Why name attribute is not here ?
0
Name attribute is the key to get the values after submit the form and you do not need the value of the button.