I copied the code and attempted to use it several ways. I was unsuccessful. First, I copied it as is. I pasted it between the second and third buttons. Here's what my code looks like:
<td class="WADAResultsEditButtons" nowrap="nowrap">
<input type="button" class="formButton ResultsPageButton unstyled DetailButton" id="sprytrigger1" onclick="document.location.href='users_detail.php?UserID=<?php echo($row_WADAusers['UserID']); ?>
<?php echo(isset($_GET["pageNum_WADAusers"])?"&pageNum_WADAusers=".intval($_GET["pageNum_WADAusers"]):""); ?>';" value=""/>
<input type="button" class="formButton ResultsPageButton unstyled UpdateButton" id="sprytrigger2" onclick="document.location.href='users_update.php?UserID=<?php echo($row_WADAusers['UserID']); ?>
<?php echo(isset($_GET["pageNum_WADAusers"])?"&pageNum_WADAusers=".intval($_GET["pageNum_WADAusers"]):""); ?>';" value=""/>
<href ="update-users-level.php?ID=<?php echo(isset($_GET['ID'])?$_GET['ID']:""); ?>"><input type="button" name="updateUserLevel" id="updateUserLevel" value="Update User Level" /></a>
<input type="button" class="formButton ResultsPageButton unstyled DeleteButton" id="sprytrigger4" onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAusers['UserID']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" value="" />
</td>
The button appeared on my dreamweaver page, but when I saved the page and clicked "Preview in ___" it didn't show up in the browser. I tried both Safari and Firefox.
When I use Dreamweaver's "Live View" the button DOES show up. However, when I click the button nothing happens. Well actually, what happens is a large chunk of code is highlighted - nearly 100 lines. The highlighted code starts with the </a> tag in the following:
<div class="WADAResultsContainer">
<a name="top" id="top"></a>
<?php if ($totalRows_WADAusers > 0) { // Show if recordset not empty ?>
and the highlight ends just before the last </div> tag below.
<div class="WADANoResults">
<div class="WADANoResultsMessage">No Results Found</div><wa:insertbutton>
<div>
<input type="button" value="Insert" class="formButton unstyled" id="Insert" name="Insert" onclick="document.location.href='plugins/users_insert.php';" />
</div></wa:insertbutton>
</div>
<?php } // Show if recordset empty ?>
</div>
I also tried placing the code for the button before the three buttons. I tried surrounding it with td tags.
I'm obviously doing something just a little off. Again, the button shows up in Live View but does not show up in the browser.
Any thoughts on what I am doing wrong?