It worked perfectly when the same .PHP files (the one with the form and the action one) were inside the some folder. But for security reasons I need the 'action' file outside the folder with another path.
I'm writing the code correctly (I guess):
action="../connect/dashboard/admin/register_dw_user.php"
It doesn't make sense to me, it's clearly that I'm missing something. But I don't know what.
And the connect.php file to link the MYSQL DB is working perfectly, and it's also inside the same 'connect' folder. I'm using:
include '../connect/lib/connect.php';
That made clear that the 'connect' folder is just one above the 'public' one. But for some reason isn't working with the action form.
This is what I tried and didn't worked:
action="/connect/dashboard/admin/register_dw_user.php"
action="../connect/dashboard/admin/register_dw_user.php"
action="../../connect/dashboard/admin/register_dw_user.php"
action="../../../connect/dashboard/admin/register_dw_user.php"
action="connect/dashboard/admin/register_dw_user.php"
Any idea? PLEASE! I need Help!