Results 1 to 4 of 4

Thread: Option button not checked
      
   

  1. #1
    ali
    ali is offline Corporal
    Join Date
    Jul 2005
    Posts
    17

    Exclamation Option button not checked

    Hello,

    - I design a form with Bluevoda like this.

    <FORM name="register" action="mail.php" method="post">
    .
    .
    <DIV style="Z-INDEX: 1; LEFT: 144px; OVERFLOW: hidden; WIDTH: 25px;
    POSITION: absolute; TOP: 39px; HEIGHT: 25px" align=left>
    <INPUT type=radio value="Bpk" name="bi">
    </DIV>

    <DIV style="Z-INDEX: 3; LEFT: 216px; OVERFLOW: hidden; WIDTH: 25px;
    POSITION: absolute; TOP: 40px; HEIGHT: 25px" align=left>
    <INPUT type=radio value="Ibu" name="bi">
    </DIV>
    .
    .
    <DIV style="Z-INDEX: 31; LEFT: 145px; OVERFLOW: hidden; WIDTH: 65px;
    POSITION: absolute; TOP: 531px; HEIGHT: 30px" align=left>
    <INPUT type=submit value="kirim" name="register">
    </DIV>
    .

    - Both input type=radio are not CHECKED.
    - After hitted the submit button to redirected to "mail.php",
    you got undefined "bi" in "mail.php".
    - But it is OK when one of them is CHECKED.

    Should you always CHECKED one when working with input type=radio ?

  2. #2
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    Radiobutton groups always must have 1 button selected.
    If this behaviour is not whta you want, use checkboxes instead.
    Forum Moderator
    BlueVoda Specialist

  3. #3
    ali
    ali is offline Corporal
    Join Date
    Jul 2005
    Posts
    17

    Exclamation A solution ?

    Hello,

    Using checkboxes, users have the opportunity to select none.
    That is not what I want. My solution is, add one option button belonging
    to the same group which I select. Then in some way hide this. This is to
    get out of the warning undefined variable. When users do not select the
    non CHECKED button, force them to select one before going further.
    What is your opinion ?


    Quote Originally Posted by Pablo
    Radiobutton groups always must have 1 button selected.
    If this behaviour is not whta you want, use checkboxes instead.

  4. #4
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    You will have to use javascript to do this, or add an extra radio button and make it invisible.
    Forum Moderator
    BlueVoda Specialist

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Send this page to a friend button
    By limebrook1 in forum BlueVoda - General Issues
    Replies: 2
    Last Post: 09-06-2010, 10:41 AM
  2. Button Problem
    By NimaZ in forum BlueVoda - General Issues
    Replies: 1
    Last Post: 10-10-2005, 08:26 AM
  3. Disable forced mouseover button change
    By pilotchip in forum Wish List & Idea Bin
    Replies: 0
    Last Post: 09-24-2005, 11:30 PM
  4. Problem with "Center in Browser" option - Pablo's help required.
    By daveshore in forum General Support Issues
    Replies: 4
    Last Post: 08-04-2005, 08:07 AM
  5. How to set automatic delivery date option
    By mei in forum BlueVoda - General Issues
    Replies: 5
    Last Post: 06-23-2005, 06:01 PM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49