Jump to content


Graphic Checkboxes?

  • Please log in to reply
4 replies to this topic

#1 EmperorDoom

  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 22 September 2006 - 05:36 PM

Hey everyone, I want to make a calendar where you can click multiple days and have them visually register as clicked sort of like checkboxes.. actually.. i want them to be checkboxes but instead of having that ugly box in there just have the number of the day.. They also have to respond to a form so that when it is submitted i get an array or something of all the dates that were selected.. is this possible? what do I have to do to get rid of those checkboxes? I think I can do it in CSS but there are other checkboxes on the same page that i want to appear.. maybe javascript? Thanks for any help

#2 shocker-z

  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 22 September 2006 - 05:44 PM

everything i've found is ASP or an extra addon.. might be worth posting in java forum as not really a php issue more a CSS/javascript/html kinda thing
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 EmperorDoom

  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 23 September 2006 - 06:53 PM


#4 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 23 September 2006 - 07:12 PM

The only thing I can come up with is

Make each day a DIV with on onClick event calling a javascript function.
Have a set of hidden checkboxes, one for each day.
When the day is clicked, the js function sets/unsets the corresponding checkbox and changes the background color style of the day DIV.

(Moving to javascript forum)
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#5 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 04:01 AM

You could also cheat and make the BUTTONs.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users