help with radio buttons

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Help with radio buttons

    I need some help with my radio buttons. I have 3 radio buttons in my form.
    Now when one is selected and the form is submitted they all go to the same
    page, I just want them to have a different URL variable so I can use that to
    determine the content of that page. Now I'm not sure how to make this happen
    with radio buttons. Any help would be great. Here's what my form looks like.


    <form name="form1" id="form1" method="post"
    action="uploads.cfm?member_category=#category_type #">
    <table width="100%" border="0" cellspacing="0" cellpadding="4">
    <tr>
    <td><label><input type="radio" id="member_category" name="category"
    value="" /><strong>1</strong></label></td>
    <td></td>
    </tr>
    <tr>
    <td><label><input type="radio" name="member_category" value="teaching"
    /><strong>2</strong></label></td>
    <td></td>
    </tr>
    <tr>
    <td><label><input type="radio" name="member_category" value="clinical"
    /><strong>3</strong></label></td>
    <td></td>
    </tr>
    <tr>
    <td><input type="submit" name="Submit" value="Next Step" /></td>
    <td></td>
    </tr>
    </table>
    </form>

    quovadimus02 Guest

  2. Similar Questions and Discussions

    1. Radio Buttons
      hi, can you let me know how to clear a radio button when the screen is loaded up again
    2. Flash MX 2004: Making radio buttons without using the radio buttoncomponent
      Hello Can anyway suggest a good guide for making radio buttons without the radio button component? I'm new to Flash, but I've gotten to the point...
    3. XML into radio buttons
      Hi, I am trying to attachMovie an XML file into a list radio buttons. Can anybody show me a clue on how to do that? Any comment, code, web site...
    4. Radio buttons help
      Try Using The Following: radioButtonName.setStyle("color", 0xFFFFFF); Replace The "FFFFFF" With The Hex Code For Whatever Colour You Want.
    5. Using Radio Buttons?
      Hi - how do I use radio buttons or check buttons so that only one of them at a time can be selected? I am using three but would like only one to...
  3. #2

    Default Re: Help with radio buttons

    You description makes it sound like you want to change the action based on the
    radio button selection, is that correct? You would have to do this with
    JavaScript. Put and onClick() handling on each of the radio buttons, and then
    just set the form's action property to whatever you want:

    <input type="radio" id="member_category" name="category" value=""
    onClick="this.form.action='whatever.cfm' />

    If this is not what you want to do, please elaborate further.

    Bryan


    blewis Guest

  4. #3

    Default Re: Help with radio buttons

    Is it vital that the variable be passed via the URL? I ask because your
    variable (member_category) is ALREADY being passed to your action page
    (uploads.cfm) as a FORM variable. I am assuming (without seeing uploads.cfm)
    that you are doin some conditional processing on uploads.cfm. You can use the
    same logic. The variable is simply in the FORM scope instead of the URL scope
    HTH

    Mr Vball Guest

  5. #4

    Default help with radio buttons

    I want to add a a few questions were the user can select a "rating" via a radio
    button.
    I would like to be able to assign a numeric values (say 1-5) to use for 1 =
    "poor service" and 5 = "great service". How do I assign a numeric value to a
    radio button, and how would I be able to total the score of say 3 questions and
    get it via an e-mail. Any help is apreciated, as I'm more of a designer than
    coder. Thanks!





    911guy Guest

Posting Permissions

  • You may not post new threads
  • You may 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139