This question has already been answered:

Hello! Help to understand the code. I began to learn php based on the lessons of Popov, everything is clear, but in the HTML code of the example site, this piece is not clear:

<div class="formm" width:"80%"> <p class="form3">Подписывайтесь на нашу рассылку и получайте свежие уроки, статьи и новости, прямо в свой почтовый ящик!</p> <form action="" method="post" name="SR_form" target="_blank"> <input type="hidden" name = "version" value="1"> <input type="hidden" name = "tid" value="34769"> <input type="hidden" name = "uid" value="27025"> <input type="hidden" name = "charset" value="windows-1251"> <input type="hidden" name = "lang" value="1"> <input type="hidden" name = "did[]" value="9267"> <p class="form1">Имя на русском:</p> <input type = "text" name = "field_email" size = "20" value = "" maxlength = "50" style: border = "1px" #C5C5C5> <p class="form1">Email адрес:</p> <input type = "text" name = "field_email" size = "20" value = "" maxlength = "50" style: margin = "0px"; padding = "0px"> <p "style = margin:5px; margin-top:"10px"; padding:0px;"> <input type = "submit" name"SR_submitButton" value = "Подписаться" style = "font-family:Verdana, sans-serif" > </p> </form> </div> 

Namely:

 <input type="hidden" name = "version" value="1"> <input type="hidden" name = "tid" value="34769"> <input type="hidden" name = "uid" value="27025"> <input type="hidden" name = "charset" value="windows-1251"> <input type="hidden" name = "lang" value="1"> <input type="hidden" name = "did[]" value="9267"> 

Is this some kind of invisible field? What is it for?

And in CSS code this moment is not completely clear:

 html>body #coolmenu a{ width: auto; } 

probably, it means "in body tags"? Thank.

Reported as a duplicate by mymedia ,, Raz Galstyan , Sasha Omelchenko , Yuri on Oct 21 '17 at 19:35 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • one
    button 101010 then we will talk - Artem
  • incomprehensible ... what a stupid question? I'm sorry, but I'm still quite a kettle ... - Regina
  • Nothing, can learn and cook sometime :-) - Artem
  • I hope))) - Regina

3 answers 3

Description input type

I will add to the description that these fields are used for: checking, sending or storing any necessary data that you will extract or write using the same PHP in these fields

html> body hack for lamb browsers like IE

  • Now everything is clear, thanks! - Regina

these are hidden fields in which you can substitute data using php or js invisible to the user. and then get them into the handler with the remaining fields of the form, you can get it through $ _POST or $ _GET, depending on what you specified in the <form ... tag. but in general, before being taken for pkhp, study at least html

  • and who says she did not study? I just didn’t see this one yet, these fields are connected with PHP. - Regina
  • and here pkhp? this is not only calculated for php, many languages ​​can take it, php is just the most popular of them, and html is useful to learn, tk <input is pure html and css is useful too, but keep quiet about js)) ! - Catsys
  • and js and html studied. quite a while true. I really hope that I will learn everything! - Regina
  • and also wanted to thank for the detailed answer. - Regina

You can use it for example when editing a record - to leave its id in the hidden hidden field. The user will not see it, and you will receive the data in a post request.

Be careful, because evil people can substitute anything there.

  • thanks, come in handy! - Regina