• Resolved tpwgd

    (@tpwgd)


    Hi guys,

    I am writing a plugin and have the form laid out as I want it – my question is what should i be putting in my forms ‘action’ attribute in order to insert that forms data into my custom wp table? After inserting the data I want the user to be redirected back to the initial page on my plugin.

    I have been able to get the form to enter the data into the table using
    <form method="post" action="admin.php?page=submitform">

    then using this

    if (isset($_GET['page']) && $_GET['page'] == 'submitform') {
    	do_submitform();
    }
    
    function submitform()...

    but the problem is the browser redirects to the admin.php?page=submitform page and gives me the message –

    you do not have sufficient permissions to access this page

    maybe i need to enable this page somehow? how do i do that?

    thanks for your time

The topic ‘plugin form submission’ is closed to new replies.