Title: plugin form submission
Last modified: August 20, 2016

---

# plugin form submission

 *  Resolved [tpwgd](https://wordpress.org/support/users/tpwgd/)
 * (@tpwgd)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-form-submission/)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tpwgd](https://wordpress.org/support/users/tpwgd/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-form-submission/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
