html - how to send data with form label element? -


When I press the button I should send the data with the form. This value should be invisible and I have & lt; Label name = R_id id = r_id style = "visible: hidden" & gt; 1 & lt; / Div & gt;

This is my form

  & lt; Form id = "send_message" action = "lib / send_message.php" method = "post" & gt; & Lt; Textarea name = "message" cols = "45" rows = "3" id = "message" & gt; & Lt; / Textarea & gt; & Lt; Label name = "r_id" id = "r_id" style = "view: hidden" & gt; 1 & lt; / Labels & gt; & Lt; Input type = "submit" name = "submit" value = "submit" & gt; & Lt; Input type = "reset" name = "plus2" value = "reset" & gt; But in my .php file it only shows the message, id is empty I  

I have $ message = $ _POST ['message'] and $ r_ID = $ _ POST ['r_id'] Used;

Edit

I should write that this label value should be changed. And I'm changing it with Jquery where the mouse is clicked, it gets the tag ID. I changed value attribute with jquery?

You are after the hidden input.

  & lt; Input type = "hidden" name = "r_id" value = "1" />  

Comments