User Admin Pages - Need to Add a Button
I used SecurityAssist to create a double opt-in registration system. In my testing, all works as expected. I haven't gone live yet, but I expect it to work.
Then I used DataAssist to create my User Admin pages. They seem to work just fine too. So far so good. I have added a UserLevel field to my db. I want to create a page that my employees who have basic admin level access can use to update a registered users UserLevel.
For example, when registering the user is automatically assigned a UserLevel of 0. After we review his credentials we want to go to the Admin section of our site, use the Search page to find this particular user, make a determination that they are eligible to be upgraded to another UserLevel - say Level 1 - and then initiate a routine that will set their UserLevel to 1 and automatically send them an email notifying them that they can now access protected content.
In the Double Opt-in tutorial there are directions for accomplishing the email task described. It also describes how to change the UserLevel in the same process. What I need are directions to add a button to the users_results.php page that was created by DataAssist to initiate this process. There are currently three buttons on this page:
One takes you to the user_results.php page
One take you to the users-details.php page
One deletes the record
I want to add a fourth button that will take me or my people to a new page that I will create called users_upgrade_userlevel.php. On this page I will simply change a users level from 0 to 1, or 1 to 2, etc. and click Submit. After clicking the UserLevel will be updated, the email will be sent, and the Admin person will be returned to the users_results.php page.
So, to summarize:
If I follow the steps in Double Opt-in tutorial, will I be able to accomplish the task of updating the UserLevel and sending the email?
What steps do I take to add a button to take me to the Update UserLevel page?