OK. I've tried all kinds of stuff to try to make this work. It is not working. So I'm going to try to make it simple for me. It may not actually be simple, but I am going to try.
There are 3 buttons on the user_results.php page. When I go digging into the code I see the following when I select the buttons:
<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=""/>
<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>
Now, I want to add another button inline with these three. I succeeded in doing a copy/paste and caused a new button to appear. But that doesn't do me any good since I need the rest of the code to make that button do what it is supposed to do. So my first question is, how do I add a fourth button?
I want this button, when clicked, to go to a new page: users_update_userlevel.php. I know it has to pass the user ID, etc. I'm still unclear where I went wrong in trying to accomplish this. As I said, I'm a newb.
If you can tell me how to accomplish this task I can try to do the next steps - add the form elements, update the record and get the email functionality to work.
For now, can you please give me some simpler (more detailed) advice on how to add the button that takes me to the new page? Thanks.