[wp-hackers] Hello, question on $_GET values with plugins
BoBB
rjorgy at gmail.com
Thu Sep 15 14:45:06 GMT 2005
You might want to try something like edit.php?page=<?php echo
basename(__FILE__);
?>&therestofyouroptions=whatever&moreoptions=whateverelse
The URL worked for me ina form POST but I didn't have to pass the GET
parameters to it, but can't think of a reason they wouldn't work.
On 9/15/05, Ryan M. Williams <domhnull at ryanmwilliams.com> wrote:
>
> Hi all, I just joined the list because I've been working on some
> WordPress plugins. It's been going well but I've run into a small issue
> I could use help with.
>
> 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.
>
> It seems like this should be simple enough but I'm having trouble
> finding out the answer. $_POST values are easy but I'm just not sure
> what to do to pass the variable on the URL so that my plugin will get
> that value.
>
> Any help will be appreciated.
>
> thanks,
> Ryan
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
/* BoBB
* AIM: Jodokast49 ICQ: 151495596
* Jabber: BoBB at jabber.com
* http://irgeek.net
*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050915/51f120fb/attachment.htm
More information about the wp-hackers
mailing list