How to disable a Text Box?

liunx

Guest
I have few text boxes on my web page that i want to disable on my update page so that user should not be able to change the values and they are only visible. i have used the disbaled = true...this helps in disbling the text box but when i post the page the NULLS are posted...i want to disble the textboxes and at the same time send the values of the boxes to the database....i hope i have described the problem in detail...if anyone can help me please...<!--content--><textarea cols="10" rows="10" readonly></textarea><br />
<br />
the readonly will stop people from editing what is inside of it.<!--content-->you cannot submit disabled form values.... so after you do your form verification.... enable the elements... document.formName.textName.disabled=''; and then submit.<!--content-->
 
Back
Top