WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Passing arguments when all plugin files are in one directory (4 posts)

  1. Ian Dunn
    Member
    Posted 8 years ago #

    I've put all my plugin files in one directory (e.g., "/wp-content/plugins/my-plugin") and can have the files link to each other by doing something like


    <a href="post.php?page=/my-plugin/scriptA.php">link
    </a>

    That works fine, but if I want to attach some arguments like this


    <a href="post.php?page=/my-plugin/scriptA.php?id=38&action=delete">link
    </a>

    I get a blank page with the error: "Cannot load /my-plugin/scriptA.php?id=38."

    I've tried using the HTML entities in the link instead of just a ? and &, but that didn't change anything.

  2. Chris_K
    Member
    Posted 8 years ago #

    If you edit that and put backticks (`) on each end of the code fragments we'll probably have a better idea of what's in your post. :-)

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Don't use the second question mark. Change it to an ampersand.

  4. Ian Dunn
    Member
    Posted 8 years ago #

    Ah, sheesh, that's it. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.