CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS/PHP?MySQL: Error with Radio List

Print topic Send  topic

Author Message
Steve F.
Posted: 09/12/2002, 9:16 AM

I have a integer field in a form with a list of values of: 1;Yes;0;No

If I make this a required field and select "No", the form returns stating that the field is required, forcing me to either select "Yes" or make the field uinrequired.

Any idea as to what is causing this?

Thanks,
Steve
Ron
Posted: 09/16/2002, 12:48 AM

Steve,
to overcome the problem, edit Validate() function in Classes.php file. Replace
the line
if($this->Required && ($this->Value == "" && $this->Value !== false) && $this->Errors->Count() == 0)
with
if($this->Required && (strlen($this->Value) == 0 && $this->Value !== false) && $this->Errors->Count() == 0)

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.