Login
Register
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Login
Register
Read-only field
Search
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Recommend
this page to a friend!
PHP Forms Class with HTML Generator and JavaScript Validation
>
PHP Forms Class with HTML Generator and JavaScript Validation package blog
>
How to Show Google Ma...
>
All threads
>
Read-only field
>
(Un) Subscribe thread alerts
Subject:
Read-only field
Summary:
Why is this summary field mandatory???
Messages:
4
Author:
Shmuel
Date:
2008-11-16 11:56:09
Update:
2008-11-18 08:03:55
1. Read-only field
Reply
Report abuse
Shmuel - 2008-11-16 11:56:09
Hi,
How can I make an input field read-only (just one field, not the whole form)?
Thanks,
Shmuel
2. Re: Read-only field
Reply
Report abuse
Manuel Lemos - 2008-11-16 23:38:31 -
In reply to
message 1
from Shmuel
You can just add the input setting the ReadOnly attribute.
3. Re: Read-only field
Reply
Report abuse
Shmuel - 2008-11-17 09:15:27 -
In reply to
message 2
from Manuel Lemos
Hi,
I'm quite new to this, so could you please provide
a code for working example. Couldn't find it in the examples
provided with the class.
Thanks,
Shmuel
4. Re: Read-only field
Reply
Report abuse
Manuel Lemos - 2008-11-18 08:03:55 -
In reply to
message 3
from Shmuel
It is easy, just add an entry in the array that is passed to AddInput like this:
$form->Addinput(array(
... some attributes ...
'ReadOnly'=>1
));
About us
Advertise on this site
Site map
Newsletter
Statistics
Site tips
Privacy policy
Contact
Copyright (c)
Icontem
1999-2025
For more information send a message to
info at phpclasses dot org
.
image/svg+xml
image/svg+xml
Contact us using Messenger