Page 1 of 1

how to disable fields

Posted: Sun Feb 27, 2005 11:45 pm
by itsmani1
hi there....

i want to create a timer on clint end for one to 20 minutes and 2nd thing i want is to disable pasting something in text field:

can i do that using php?


Regards!

Posted: Sun Feb 27, 2005 11:53 pm
by feyd
1. that's Javascript, not PHP. Hint: setTimeout()
2. if you want to disable a field entirely from being typed in (at all) ..

Code: Select all

<input type="text" name="hi" value="I am read-only" disabled="disabled" />

...and check your private messages. :?