Using cfcheckbox!

Discussion in 'Programming' started by Hercf, Mar 23, 2008.

  1. #1
    Hi everybody!
    I’d like to set up a dynamic “name” in coldfusion 8, with dreamweaver CS-3!
    I have 2 Cf checkbox forms: “my” , “your” and
    2 Cf Image fields: “name”, “site”.
    Depending on selection, result must be:
    “myname” or “yourname”;
    “mysite” or “yoursite”.
    Could anybody give me a hint? Thank you!
    H.
     
    Hercf, Mar 23, 2008 IP
  2. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #2
    I'm sure sure I understand what you need.

    Sounds like you want radio buttons like this:

    
    <form action="action_page.cfm" method="post">
    
    <p>Pick Name</p>
    <input type="radio" name="pick_name" value="myname" />
    <input type="radio" name="pick_name" value="yourname" /><br/><br/>
    
    <p>Pick Site</p>
    <input type="radio" name="pick_site" value="mysite" />
    <input type="radio" name="pick_site" value="yoursite" /><br/><br/>
    
    <input type="submit" name="submit" value="Go" />
    </form>
    
    
    Code (markup):
    And it sounds like you want it to change the results of something...

    Did you mean change the results of a query?

    If so then we need to do some more code.

    Post some more information and some of the code you are working with.
     
    unitedlocalbands, Mar 23, 2008 IP
  3. Hercf

    Hercf Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for your help!
    I solved the problem.
    I appreciate!
    H.
     
    Hercf, Mar 28, 2008 IP