close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How do you use a Radio Group in a repeat region

Thread began 2/23/2010 10:48 pm by Jaffa | Last modified 7/02/2010 5:51 pm by Jaffa | 3811 views | 8 replies

Dave BuchholzBeta Tester

You can use a radio group within multiple update, I do so all the time. This is a typical piece of code:

<?php do { ?>
<tr id="rowsort-<?php echo $row_rsMainView['id']; ?>">
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_rsMainView){
?>
<th class="textCenter"><?php echo $row_rsMainView['sortorder']; ?></th>
<td><input type="text" name="title_<?php echo $RepeatSelectionCounter_1; ?>" id="title_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_rsMainView['title']; ?>" size="30" /></td>
<td class="textCenter"><span class="radio">
<input<?php if (!(strcmp($row_rsMainView['publish'],"1"))) {echo " checked=\"checked\"";} ?> type="radio" name="publish_<?php echo $RepeatSelectionCounter_1; ?>" value="1" id="publish_0_<?php echo $RepeatSelectionCounter_1; ?>" />
<label for="publish_0_<?php echo $RepeatSelectionCounter_1; ?>">Yes</label>
<input<?php if (!(strcmp($row_rsMainView['publish'],"0"))) {echo " checked=\"checked\"";} ?> type="radio" name="publish_<?php echo $RepeatSelectionCounter_1; ?>" value="0" id="publish_1_<?php echo $RepeatSelectionCounter_1; ?>" />
<label for="publish_1_<?php echo $RepeatSelectionCounter_1; ?>">No</label>
</span>
<input type="hidden" name="tstampupdate_<?php echo $RepeatSelectionCounter_1; ?>" id="tstampupdate_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo time(); ?>" />
<input type="hidden" name="dateupdate_<?php echo $RepeatSelectionCounter_1; ?>" id="dateupdate_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo date('Y-m-d', time()); ?>" />
<input type="hidden" name="adminupdate_<?php echo $RepeatSelectionCounter_1; ?>" id="adminupdate_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $_SESSION['adminID']; ?>" /></td>
<td><?php echo $row_rsDeleteView['tstampinsert']?date('M jS, Y',$row_rsDeleteView['tstampinsert']):'No Date Logged'; ?></td>
<td><?php echo $row_rsDeleteView['tstampupdate']?date('M jS, Y',$row_rsDeleteView['tstampupdate']):'Never'; ?></td>
<td class="textCenter nowrap"><a class="i8_button" href="index.php?action=view&id=<?php echo $row_rsMainView['id']; ?>">View Details</a>
<input type="hidden" name="WADA_RepeatID_id_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_id_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_rsMainView["id"]; ?>" /></td>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<td colspan="5">No records match your request.</td>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_rsDetailView && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_rsDetailView = mysql_fetch_assoc($rsDetailView);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
</tr>



please bear in mind that I do not use the DA wizard to create my tables so they may look different to what you are used to seeing

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...