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

User Admin Pages - Need to Add a Button

Thread began 3/22/2013 1:43 pm by greg401801 | Last modified 3/26/2013 2:49 pm by greg401801 | 1005 views | 6 replies


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='plugins/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='plugins/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="" />


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.

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





Ease of use


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