Submit form with POST method to a custom processing.php 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.
- The topic ‘Submit form with POST method to a custom processing.php template’ is closed to new replies.