Wordpress + Mysql Config + PHP file -> not working

A

Anonymous

Guest
Hi there,

I am trying to create a custom registration form and connect the file to mysql using a config.php file. I created the file with a tutorial.

I placed both the config.php and the registration.php in a "page-templates folder" inside the "theme folder". Using wordpress "add new page" I am able to select the registration.php file as a template. I am able to open the newly created page and type in information like username and password. I am able to press submit and I get redirected to a new page.

Problem:
The username and password are not in the dedicated table of the mysql database - hence I assume that the config.php file is not working properly. How do I make it work?

I would really appreciate your help.

Siegfried
 
Taking this one step at a time:

Are you trying to find user details in your database from the registration.php form?
 
Back
Top