5, September 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 907 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Sep 14, 2006, 05: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, 12:11:32 PM »

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: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 15, 2006, 12:26:25 PM »

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


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4094
Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Sep 05, 2008, 08:30:39 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!


Forum Statistics
Total Posts: 36.294
Total Topics: 7.477
Total Members: 3.899
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: speedy5044

35 Guests, 3 Users online :

14 users online today:



Readers

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