[wp-hackers] Hello, question on $_GET values with plugins

Robert Deaton false.hopes at gmail.com
Thu Sep 15 19:53:37 GMT 2005


$_SERVER['PHP_SELF'] . '&edit=1'; should work on plugin admin pages
also (assuming PHP_SELF is the correct value.)

On 9/15/05, Firas D. <fd at firasd.org> wrote:
> Try add_query_arg('gbedit', 1, $_SERVER['REQUEST_URI'])
> 
> Ryan M. Williams wrote:
> 
> >
> > My plugin has an administrative interface under Manage which displays
> > data from its table.  It is essentially the same sort of interface as
> > the Manage Posts page.  Like that page I want to have hyperlinks
> > 'Edit' and 'Delete'.  So the url would include something like
> > '?gbedit=1' where the number is the id number of the entry I want to
> > edit.  If I just do that though I end up with an url:
> > WPURL/edit.php?gbedit=1  Adding the plugin filename ends up with
> > WPURL/wp-admin/plugin.php?gbedit=1  None of those work of course.
> 
> 
> --
> http://firasd.org
> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 


-- 
--Robert Deaton
http://somethingunpredictable.com


More information about the wp-hackers mailing list