Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Alex] Form to run sub/function in plugin: Edit Log

Here is the list of edits for this post
Re: [Alex] Form to run sub/function in plugin
Thanks Alex.

Just a note, I tried doing the "admin" version of this and I keep gettin an internal server error:

Example:

<form method="POST" action="$CFG->{admin_root_url}/admin.cgi" >
<input type="hidden" name="do" value="plugin">
<input type="hidden" name="plugin" value="ToolBox">
<input type="hidden" name="func" value="stripfrom">
blah blah
</form>


And in ToolBox.pm:


sub stripfrom {
blah blah
return;
}


I have run into problems running admin.cgi from a form, where the form fails, but a hyperlink to the same works. For example running the force repair (nph-build.cgi?do=repair&force=1) does exactly that... I cannot run it from a form (it does an all build instead), but a hyperlink works just fine.

WeirdCrazy


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jun 17, 2002, 10:48 AM

Edit Log: