I have a form which includes
<input id="user-id" type="text" data-user-id="" name="message" placeholder="type and send..." class="form-control">
data-user-id
HTML5 data attribute. When I submit the form, I want to use the value of data attribute in a php class. How to access this data attribute in php?