Form action not working |
This is the code. When you press the submit button, nothing happens
view: Code: <form method="post" action="<?php echo subSECURE;?>/index.php/User/add" autocomplete="off" enctype="multipart/form-data"> Routes: PHP Code: $routes->post('User/add/(:segment)', 'User::add/$1',['filter' => 'auth']); Controllers: PHP Code: class User extends BaseController
What is subSECURE?
You're missing a route for /User/add. It's not the same thing as /User/add/(:segment).
I tried with User/add and it still doesn't work
maybe I should put some kind of helper? pressing the button does not execute the form at all subSECURE is = secure.domain.com in routers.php PHP Code: function whichSubRoute()
|
Welcome Guest, Not a member yet? Register Sign In |