• Resolved whooami

    (@whooami)


    oh dear.

    So ok, I need to be able to RELOAD a page added via a plugin, like so:

    wp-admin/this.php?page=that.php?action=some&thing=5

    However I get a friendly message telling me :

    Cannot load that.php?action=some.

    complete with the period.

    is there a way to to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    wp-admin/this.php?page=that.php?action=some&thing=5

    So… your variables are:
    page = ‘that.php?action=some’
    thing = ‘5’

    Somehow, I don’t think that was what you wanted.

    You can’t include a second question mark in a URL like that. Are you trying to pass query variables to that.php? If so, then you’ll need to have this.php recognize and pass along those query variables itself.

    Thread Starter whooami

    (@whooami)

    Yeah, I typo’d.

    pages added to wp-admin typically are added as subpages, ie, like so:

    .../wp-admin/options-general.php?page=thing.php

    where thing.php is the added plugin page, and options-general.php is the parent page.

    My variables are action=some AND thing=5 and I need those to be sent to this.php which is a child of a regular admin page.

    The url ends up being like this:

    ...wp-admin/parent.php?page=child.php?action=somet&thing=1

    but hmm.. the second question mark .. I just read that. 🙂

    Lets go see 🙂

    that was it, thank you Otto! Ive been working on this thing for way too long.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Again, you can’t do that. You cannot include a second question mark in the URL.

    Do it like this instead.
    /wp-admin/parent.php?page=child.php&action=somet&thing=1

    The parent.php is not redirecting you to child.php. Child.php is being loaded by parent.php. This makes all the difference.

    Edit: I see your edit. Glad it works. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘http_get for a plugin’ is closed to new replies.