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 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    61
    Thanks
    2
    Thanked 1 Time in 1 Post

    Get radio button value?

    I don't exactly know how to word my issue.

    Basically, I need it so that if a user selects 'option1' in the group 'group1' when they go to 'group2' is only gives them a certain selection to choose from. If they choose 'option2' in 'group1' they will get a different set to choose from.

    My main dilemma is it must do this without them having to submit. Would PHP work for this?

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,546
    Thanks
    45
    Thanked 259 Times in 256 Posts
    What you're looking for is Javascript.

    Webpages are, by default, static. PHP allows you to create these static pages. With PHP, pages are processed on the server then given to the user. Javascript controls what happens on the users end, allowing you to manipulate your user's environment based on what the user does. Of course, JS has the downside that the user can disable Javascript, meaning either your page becomes unusable or you have code to compensate for it.

  • #3
    New Coder
    Join Date
    Oct 2009
    Posts
    61
    Thanks
    2
    Thanked 1 Time in 1 Post
    okay - thanks! I'll take this to the javascript forums. Much appreciated


  •  

    Posting Permissions

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