#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    11
    Rep Power
    0
    I wonna know, how do I handle checkbox's

    example:
    <form action="aaaa.php">

    <input type="checkbox" name="cb" value="ON">

    <input type="submit" value="Submit" name="B1">
    </form>

    My problem is: the value of the checkbox will change when I click over the checkbox? or I have to do something in javascript to change the value, when someone click over the checkbox?

    PS: sorry my bad english...


    ------------------
    {C00L|Z3R0} on irc.ptnet.org
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    the value of the checkbox will change when I click over the checkbox? or I have to do something in javascript to change the value

    what do you mean COOL?..

    if you want to see your selected check box value in php try this..


    <form action="aaaa.php" method="post">

    <input type="checkbox" name="cb" value="ON">

    <input type="submit" value="Submit" name="B1">
    </form>

    ----

    aaaa.php

    <?php

    if (isset($cb)){
    echo "check box value is:".$cb;
    }
    ?>





    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    11
    Rep Power
    0
    Oki, I'll try it

Similar Threads

  1. Does Perl will handle this?
    By fablau in forum Perl Programming
    Replies: 5
    Last Post: February 13th, 2004, 03:48 AM
  2. main window handle
    By kubicon in forum C Programming
    Replies: 1
    Last Post: December 23rd, 2003, 09:13 PM
  3. Replies: 2
    Last Post: September 13th, 2003, 11:46 AM
  4. Get the process handle of the current application
    By Onslaught in forum C Programming
    Replies: 3
    Last Post: July 2nd, 2003, 04:18 PM
  5. Replies: 8
    Last Post: March 31st, 2003, 08:49 AM

IMN logo majestic logo threadwatch logo seochat tools logo