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
- The topic ‘Calling php function from a form action: received 404 Error’ is closed to new replies.