Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    93
    Thanks
    30
    Thanked 0 Times in 0 Posts

    Associating a check box with an input box

    Hello,
    I have a form with several input boxes that some of the information occasionally needs to be emailed. I was trying to use check boxes to allow the user to choose what information gets sent but I have not been able to figure out how to associate a check box with a specific input box. Is this possible?

    Thanks,
    Don

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Yes, it is possible, but it will require coding. Try the javascript forum.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • Users who have thanked jerry62704 for this post:

    dragon6158 (07-17-2008)

  • #3
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    what are you using as the mailer? if you're using php or something it's as simple as an if statement. you just set a condition on whether or not that box is checked.

  • #4
    Regular Coder
    Join Date
    Jul 2008
    Posts
    195
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Quote Originally Posted by ohgod View Post
    what are you using as the mailer? if you're using php or something it's as simple as an if statement. you just set a condition on whether or not that box is checked.
    You could also do that in JavaScript.

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by macwiz View Post
    You could also do that in JavaScript.
    But JavaScript can be turned off, which equals angry emails when the wrong stuff is sent.

  • #6
    Regular Coder
    Join Date
    Jul 2008
    Posts
    195
    Thanks
    3
    Thanked 11 Times in 11 Posts

    Ssjs

    Quote Originally Posted by CyanLight View Post
    But JavaScript can be turned off, which equals angry emails when the wrong stuff is sent.
    That is why I love Server-Side JavaScript. It doesn't matter if the client has JavaScript turned off, as it is the server that is parsing and executing the code. The client just displays the results.

  • #7
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Does that still apply when I have NoScript switched on in FF? I have avoided AJAX because I thought it, too, could be effectively disabled.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #8
    Regular Coder
    Join Date
    Jul 2008
    Posts
    195
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Quote Originally Posted by bazz View Post
    Does that still apply when I have NoScript switched on in FF? I have avoided AJAX because I thought it, too, could be effectively disabled.

    bazz
    Take a look:
    CSJS vs. SSJS


  •  

    Posting Permissions

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