PHPjabbers - tools for webmasters
shopping cart (0 item)
HOME
PRODUCTS
PHP TUTORIALS
PHP FORUM
ABOUT US
CONTACT US
Our products

Disable a text field using php

Posted by Nandhu on May 5th, 2008

How to disable a text box in a form using php.
i.e., I want the displayed item in the textbox to be a read only.... Is dat possible?

Back
REPLIES
Posted by Nidhi on Jan 21st, 2012

Plz explain if you have any other method to make field read only through php... not with html..
Posted by Shubham Goyal on Dec 23rd, 2010

See this for an example -
">
Just put the value of the disabled attribute to be "disabled". Hope this helps.
Posted by sunil on Apr 27th, 2010

yaar can u tel if i want some text field disabled on certain condition how it could be done
Posted by jkkuio on Nov 20th, 2009

iuooo
Posted by Veselin Stoilov on May 6th, 2008

you can use the code in my previous post to make a form field read only
Posted by Nandhu on May 6th, 2008

I want to disable a text field.... not necessarily using php...
I used the following code but its not working...

<input type=text onfocus=disable()>
Posted by Veselin on May 5th, 2008

to make a field read only you can use
<input type="text" readonly="readonly" />
I am not sure what you mean saying that you want to make it using PHP. Can you please explain how you expect it to work
 
POST A REPLY
Your name:
Your email: (email address will not be posted on the website)
Reply:
Verification code:
type characters on the image in the text box