close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Update Multiple Rows with one form

Thread began 2/07/2018 9:26 am by anonymous | Last modified 3/20/2018 12:48 pm by anonymous | 896 views | 63 replies

anonymous

This is great. I downloaded it and when I try to apply the server behavior, it keeps saying that I need to have a repeat function applied to a form with form fields, which I do. Here is my table code:

<form method="post"><table width="100%" border="0" cellspacing="3" id="example" cellpadding="5" class="display">
<thead>
<tr>
<th height="39" valign="top">First Name</th>
<th valign="top">Last Name</th>
<th valign="top">Student ID#</th>
<th valign="top">Level</th>
<th valign="top">Physical Date</th>
<th valign="top">Concusion Course</th>
<th valign="top">Academic</th>
<th valign="top">Other Medical Info</th>
</tr>
</thead>
<tbody>
<?php
$wa_startindex = 0;
while(!$athlete->atEnd()) {
$wa_startindex = $athlete->Index;
?>
<tr>
<td valign="top"><?php echo($athlete->getColumnVal("student_fname")); ?></td>
<td valign="top"><?php echo($athlete->getColumnVal("student_lname")); ?></td>
<td valign="top"><?php echo($athlete->getColumnVal("studentID")); ?></td>
<td valign="top"><label for="level4"></label>
<select name="level4" id="level4">
<option value="" <?php if (!(strcmp("", ($athlete->getColumnVal("level4"))))) {echo "selected=\"selected\"";} ?>>Select One</option>
<option value="Varsity" <?php if (!(strcmp("Varsity", ($athlete->getColumnVal("level4"))))) {echo "selected=\"selected\"";} ?>>Varsity</option>
<option value="JV" <?php if (!(strcmp("JV", ($athlete->getColumnVal("level4"))))) {echo "selected=\"selected\"";} ?>>JV</option>
<option value="Freshman" <?php if (!(strcmp("Freshman", ($athlete->getColumnVal("level4"))))) {echo "selected=\"selected\"";} ?>>Freshman</option>
</select></td>
<td valign="top"><label for="physical_date"></label>
<input name="physical_date" type="text" id="datepicker" value="<?php echo(date("m/d/Y", strtotime($athlete->getColumnVal("physical_date")))); ?>"></td>
<td valign="top"><label for="concussion_course2"></label>
<input name="concussion_course2" type="text" id="datepicker2" value="<?php echo(date("m/d/Y", strtotime($athlete->getColumnVal("concussion_course2")))); ?>"></td>
<td valign="top"><label for="academic"></label>
<input name="academic" type="text" id="academic" value="<?php echo($athlete->getColumnVal("academic")); ?>" size="10">
<input name="registrationID" type="hidden" id="registrationID" value="<?php echo($athlete->getColumnVal("registrationID")); ?>"></td>
<td valign="top"><label for="other_medical_info"></label>
<textarea name="other_medical_info" id="other_medical_info" cols="30" rows="3"><?php echo($athlete->getColumnVal("other_medical_info")); ?></textarea></td>
</tr>
<?php
$athlete->moveNext();
}
if ($wa_startindex == $athlete->Index) $athlete->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
</tbody>
</table></form>

Thanks again for your help!

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...