Jump to content

A Point in the RIGHT DIRECTION!!


pikemsu28

Recommended Posts

I need a point in the right direction!!!!!

I have a form that has two sets of radio button groups being displayed dynamically.  I want the second group to display information depending on the radio that was selected in the first group.

EXAMPLE:

Group 1                  Group 2

Clinical                  If Clinical Display: Team 1
                                                    Team 2
Non Clinical            If Non Clinical Display: Team 1
                                                          Team 2
                                                          Team 3
General                  If General Display: Team 1
                                                    Team 2
                                                    Team 3
                                                    Team 4

If someone could point me in the right direction on this it would greatly be appreciated.

Thanks, Jason

BTW I'm using Dreamweaver to code my PHP and using some PHP Built in functions of Dreamweaver.
Link to comment
Share on other sites

[code]
<?php
mysql_select_db($database_Nursing, $Nursing);
$query_teams = "SELECT team FROM teams";
$teams = mysql_query($query_teams, $Nursing) or die(mysql_error());
$row_teams = mysql_fetch_assoc($teams);
$totalRows_teams = mysql_num_rows($teams);

$x = 0;
do {
$team[$x] = $row_teams['team'];
$x++;
} while ($row_teams = mysql_fetch_assoc($teams));
?>
<form method="post" name="teams" id="teams" onSubmit="return checkRadios(this);">
<table width="250" align="center" border="1">
<tr>
<td><?php for ($y = 0; $y < $totalRows_teams; $y++) { ?>
<label>
<input type="radio" name="team" value="<?php echo $team[$y]; ?>" />
<?php echo $team[$y]; ?></br></label>
<?php } ?>
</td>
</tr>
<tr align="center">
<td><input name="submit" type="submit" class="bluebox" id="submit" value="Submit" />
<input name="reset" type="reset" class="bluebox" id="reset" value="Reset" />
</td>
</tr>
</table>
</form>
[/code]

This code generates the first radio group through the sql query.  How do i get this code to display the second radio group?  I know how to do the form and the loop, just how to get this radio group to dynamically populate once the first radio group is selected.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.