SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make checkboxes explicit

    I have 4 checkboxes and I can check all 4 of them, but my goal is to make them explicit. If I check for example A and then decide to change my mind and select B then A will be unselected, but I dont know how to do suck a thing. :bemused:

    Code:
    <td bgCOLOR="#E0E0E0" class="tah11" align=left>
    <INPUT TYPE="checkbox" NAME="progress[A]" value="work" <? echo isset($progress['A']) ? 'checked' : ''; ?>>&nbsp;A - duży<br>
    <INPUT TYPE="checkbox" NAME="progress[B]" value="like" <? echo isset($progress['B']) ? 'checked' : ''; ?>>&nbsp;B<br>
    <INPUT TYPE="checkbox" NAME="progress[C]" value="exam" <? echo isset($progress['C']) ? 'checked' : ''; ?>>&nbsp;C<br>
    <INPUT TYPE="checkbox" NAME="progress[D]" value="exam" <? echo isset($progress['D']) ? 'checked' : ''; ?>>&nbsp;D - mały<br>
    
    </td>

  2. #2
    Dinah-Moe Humm mudshark's Avatar
    Join Date
    Dec 2003
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like your input types would then need to be radio - not checkbox. Checkboxes by concept allow for multiple selects. Not a php question, btw...

  3. #3
    Made with a Mac! philm's Avatar
    Join Date
    Sep 2001
    Location
    Portsmouth, UK
    Posts
    735
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not javascript either... basic HTML


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
  •