Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [PEAR] QuickForm: setting checkbox when editing
Sorry for the double post, my bad, learning to use the newsgroup software.

I used the advcheckbox and that worked fine. Don't know what the problem was
with checkbox.

Could you give me an example of using the setChecked method please?

Thanks Justin!

-----Original Message-----
From: Justin Patrin [mailto:papercrane@gmail.com]
Sent: Thursday, May 19, 2005 11:05 PM
To: Nola
Cc: pear-general@lists.php.net
Subject: Re: [PEAR] QuickForm: setting checkbox when editing

On 5/18/05, Nola <nola@devasap.com> wrote:
> I tried to search before sending this, so I'm sorry if I could not
> find where this has been said before.
>
> I am using the form to edit, so I use the form->setDefaults($array) to
> set the form fields with the data to edit, but I don't know how to set
> the checkboxes.
>
> Do I need to check the value of my variable and if == 1, then set the
> attribute "checked" for the checkbox?
>

setDefaults should work fine. If it doesn't, try using setChecked on the
checkbox.

--
Justin Patrin

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
The information in this email and any attachments may contain
confidential information that is intended solely for the
attention and use of the named addressee(s).  This message or
any part thereof must not be disclosed, copied, distributed or
retained by any person without authorization from the addressee.
If you are not the intended addressee, please notify the sender
immediately, and delete this message.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Report this thread to moderator Post Follow-up to this message
Old Post
Stowe, Nola
05-27-05 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.