Title: Calling php function from a form action: received 404 Error
Last modified: September 2, 2016

---

# Calling php function from a form action: received 404 Error

 *  [zhuzh1](https://wordpress.org/support/users/zhuzh1/)
 * (@zhuzh1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/calling-php-function-from-a-form-action-received-404-error/)
 * I am relative novice to WORDPRESS and php development on the platform. This is
   the first time I encounter this problem. Any helps and advice will be greatly
   appreciated.
 * I have created an HTML form which calls a php function when submitted:
 *     ```
       <form name="business" action="create-account-and-profile.php" method="POST"> 
       <table> 
       <tbody> 
       ....
       ```
   
 * I have made sure that create-account-and-profile.php is in the theme (which is
   child theme) directory. The php file is a form data processor which starts as
   follows:
 *     ```
          require_once (ABSPATH . "wp-admin/includes/user.php");
   
           if (isset($_POST['personal_email_id'])) {
           	$email_id = $_POST['personal_email_id'];
           .......
       ```
   
 * However, when the form is submitted, WORDPRESS gives a “404 not found” error.
 * I searched relevant posts on this forum and on stackoverflow.com, but could not
   find the root cause.
 * JZ
    -  This topic was modified 9 years, 9 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

The topic ‘Calling php function from a form action: received 404 Error’ is closed
to new replies.

## Tags

 * [php coding](https://wordpress.org/support/topic-tag/php-coding/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [zhuzh1](https://wordpress.org/support/users/zhuzh1/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/calling-php-function-from-a-form-action-received-404-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
