Title: Submit form with POST method to a custom processing.php template
Last modified: August 21, 2016

---

# Submit form with POST method to a custom processing.php template

 *  Resolved [jackjoe](https://wordpress.org/support/users/jackjoe/)
 * (@jackjoe)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/submit-form-with-post-method-to-a-custom-processingphp-template/)
 * I’m new to WordPress..I’m working on a locally hosted website using wamp..the
   issue is that I have a custom page template with a form, which I want submitted
   to a page (processing.php)..both in the same directory. here’s the form
 *  `<form action=”<?php echo get_template_directory_uri();?>processing.php” method
   =”post” onSubmit=”return validateFields();” name=”login_form_mini” id=”email_form”
   style=”float:right; max-width:163px; margin-top:8px; border:1px bold #33FF33;
   border-radius: 3px;”>
    <input id=”auth_email” class=”login-input” type=”text”
   name=”email” value=”E-mail” onFocus=”setInputText(this,’E-mail’,0)” onBlur=”setInputText(
   this,’E-mail’,1)” /> <input type=”password” id=”password” class=”login-input”
   name=”password” value=”Password” onFocus=”this.type=’password’; setInputText(
   this,’Password’,0)” onBlur=”setInputText(this,’Password’,1); if (this.value==’
   Password’) this.type=’text'” /> <input type=”submit” name=”Login”/> </form>`
 * On form submit, i get the following error: Not Found
 * The requested URL /web_site/wp-content/themes/twentythirteencprocessingpage.php
   was not found on this server.
    the return path appears to be wrong as well. I’ve
   spent a while on this stage searching for a solution. Any help is highly appreciated.
   Thanks, Jack.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jackjoe](https://wordpress.org/support/users/jackjoe/)
 * (@jackjoe)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/submit-form-with-post-method-to-a-custom-processingphp-template/#post-4517414)
 * Luckily I figured a way out..
 * just added the ../ to **action=”<?php echo get_template_directory_uri();?>processing.
   php”** to get **action=”<?php echo get_template_directory_uri();?>../cprocessingpage.
   php”**
 * I wouldn’t know

Viewing 1 replies (of 1 total)

The topic ‘Submit form with POST method to a custom processing.php template’ is 
closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jackjoe](https://wordpress.org/support/users/jackjoe/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/submit-form-with-post-method-to-a-custom-processingphp-template/#post-4517414)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
