Title: Process form in separate php file
Last modified: August 20, 2016

---

# Process form in separate php file

 *  [ravster](https://wordpress.org/support/users/ravster/)
 * (@ravster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/process-form-in-separate-php-file/)
 * Hey everyone,
    I can’t get a php page to work. I have a form that submits using
   post, a file and some fields. The php page that handled the input is in the form
   of a template in the theme folder.
 *  The problem is that while I can make the page spit back $_POST information, 
   I’m not able to get ‘get_header()’ to work. I’m also unable to get ‘$wpdb’ to
   work.
 *  Do I need to include something in the php page for this to work? I need to use
   a seperate php page since I’m uploading a file and so can’t use javascript. the
   form is a part of a plugin I’m writing.
 * Thanks,
    ravster

The topic ‘Process form in separate php file’ is closed to new replies.

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ravster](https://wordpress.org/support/users/ravster/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/process-form-in-separate-php-file/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
