SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Check Boxes

  1. #1
    SitePoint Zealot Freelander's Avatar
    Join Date
    Dec 2004
    Location
    Arizona
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Check Boxes

    How can i check if a check box is checked?

    I want to make an "If" statement. So

    If checkbox1.checked = true {
    $total += 3
    }

    Thats the only way i can think of how to do it. But i now it doesnt work. So how would i do it?

    Thank you.

  2. #2
    Non-Member St.'s Avatar
    Join Date
    Nov 2004
    Location
    Cloud #9
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    du you whant check it on users side or on server side?

  3. #3
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do something like this:
    Code:
    if (isset($checkbox)) {
    //do something here
    }
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •