28, May 2012

Validate_fields class not working with checkboxes, radios and select menus. - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Validate_fields Class (Moderator: Olaf)
Topic: Validate_fields class not working with checkboxes, radios and select menus.
« previous next »
Pages: [1] Print

Author Topic: Validate_fields class not working with checkboxes, radios and select menus.  (Read 1791 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Sep 14, 2006, 04:24:22 pm »

I have been playing around with the validate_fields class and have been trouble with getting checkboxes, radio buttons and select boxes to validate.

Have managed to validate textboxes and textareas ok though so thats a start. Any ideas or examples?

Thanks,

Dave
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #1 on: Sep 15, 2006, 11:11:32 am »

Ok,

Have sorted out SELECT boxes out. They're just the same as text funnily enough so apologies for that lame one.

Still can't get the checkboxes to work.The error message i get is: The value in field "Visible?" is not valid.

This is my code: $example->add_check_box("Visible?", $_POST['inpVisible'], "checkbox", "y");
and also have tried: $example->add_check_box("Visible?", $_POST['inpVisible'], "checkbox"); and get the same error.

Any pointers?

Thanks   
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 15, 2006, 11:26:25 am »

Ok,

Have sorted out SELECT boxes out. They're just the same as text funnily enough so apologies for that lame one.

Still can't get the checkboxes to work.The error message i get is: The value in field "Visible?" is not valid.

This is my code: $example->add_check_box("Visible?", $_POST['inpVisible'], "checkbox", "y");
and also have tried: $example->add_check_box("Visible?", $_POST['inpVisible'], "checkbox"); and get the same error.

Any pointers?

Thanks   

that's the wrong use check the usage in the example: validation_demo.php

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4094
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Validate_fields Class (Moderator: Olaf)
Topic: Validate_fields class not working with checkboxes, radios and select menus.
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:16:54 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.