HTML POST a label
I dont know the correct term for this "Label" that im talking about - its not within label tags, its simply
<td width="300"> text </td&g开发者_如何学Got;
I want to be able to "POST" this to a php script. I know how to post, but not from the above label/text The reason i want to do this is because i had a text box that was auto-filled from session Variables. But i had used the "disabled" feature within HTML, but that then made the stuff being "posted" to my php script be treated as empty, by removing the "disabled" line, it works but i need it so the text is not editable by the user.
Thanks a lot in advance
You cant post text like that, but you can make an input field hidden.
<input type="hidden" name="hiddenfield" value="text" />
You can also make an input field read only by applying the read only attribute, instead of using disabled.
<input type="text" name="rofield" value="text" readonly="readonly" />
精彩评论