close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple record update as plug-in

Thread began 5/24/2013 4:21 am by YellowCircleWeb | Last modified 5/24/2013 5:19 pm by YellowCircleWeb | 854 views | 4 replies |

YellowCircleWeb

Multiple record update as plug-in

I'm trying to create a multiple record update form as a plug-in on an administrator dashboard. The idea is that the administrator can update the authorised state of multiple organisations that have registered on the website. I have followed the tutorial on this from your site. I want to use the Update multiple records as a plug-in because I might need to use it on different pages of the admin system I'm building.

When I click the update button on my admin dashboard I get an error message stating I don't have permission to access the plug-ins directory. I think the error is occuring because the plug-in file is in a plugins directory and actual admin-dashboard.php file that it's plugging in to is in a separate admin directory. However, I don't know how to correct this error as I can't see anything in the WA generated code.

I've attached both files in a zip for reference any help is greatly appreciated.

Attached Files
admin-and-plugin.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

YellowCircleWeb

I've left the details you asked for in the private section

Sign in to reply to this post

Jason ByrnesWebAssist

the problem was the form action:

<form action="" method="post" enctype="application/x-www-form-urlencoded" name="frmOrganisations" id="frmOrganisations">

in a plugin page, the action should not be left blank, it should use the PHP Self variable to post to the plugin page:

<form action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>" method="post" enctype="application/x-www-form-urlencoded" name="frmOrganisations" id="frmOrganisations">


you had also left the checked value for the checkbox blank.

i corrected that by changing the checked value to 1.

Sign in to reply to this post

YellowCircleWeb

Thank you for your assistance. Much appreciated.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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