WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] $_POST Problem with Admin Manage Submenu (2 posts)

  1. Driftless
    Member
    Posted 5 years ago #

    I am designing a (simple) admin plugin to update a simple mySQL table.

    I used the add_management_page('PDB Manage', 'PDB Manage', delete_others_pages, 'pdbmanage', 'pdb_manage_page')

    I want to follow a simple structure:

    <? if(!isset($pdbaction))
    {
    ***list current table with a [link] to edit the entry***
    }
    ?>
    <?
    if($_GET["pdbaction"]=="edit" || $_POST["pdbaction"]=="edit")
    {
    ***call the edit form ****
    }
    ?>
    <? if ($_POST["$submit"])
       {
    *** update the table ***
    }
    ?>

    The trouble I am having is it never recognizes the $_POST or $_GET arguments...

    The [link] I am using when intially giving the table is <a href="edit.php?page=pdbmanage&pdbaction=edit&id=' . $id .'">[link]</a>

    I have a suspicion that this is where I am failing...

    Clear as mud? Any thoughts?

  2. Driftless
    Member
    Posted 5 years ago #

    Argh! I'm that guy...

    Think I found the error in another part of my code.

Topic Closed

This topic has been closed to new replies.

About this Topic