Update page not reflecting db values for select menus or checkboxes
Hi, I used the DA Pages wizard to create insert, results, update, detail and search pages for a site. All other pages are working correctly except the update page, which populates the text and textarea fields, but doesn't show correct values for checkboxes or select menus.
My text input fields look like this:
<input id="due_date" name="due_date" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("update","due_date"):"".$row_WADAprs_2016["due_date"]."")); ?>" class="formTextfield_Medium" tabindex="2">
My checkboxes like this:
<input type="checkbox" name="comp_needed" id="comp_needed" value="1" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("update","comp_needed"):"".$row_WADAprs_2016["comp_needed"].""),"1"))) {echo "checked=\"checked\"";} ?>
I didn't have all of the select menu options when I created the pages, but went back afterward and added them all to my insert and update pages. I realize that this might be an issue, but I'm a novice and haven't the slightest idea where to begin.
Thanks in advance for your help!