Welcome Guest, Not a member yet? Register   Sign In
problem with form data
#7

(04-12-2023, 12:09 AM)kenjis Wrote: What should you do is to define all routes you need.
If you don't define the route, you cannot access to the controller method.

And each HTTP request needs a HTTP method (HTTP verb).
Each route also needs a HTTP method (HTTP verb).

You can see your all routes with `php spark routes` command.
https://codeigniter4.github.io/CodeIgnit...ing-routes

You should try the News tutorial:
https://codeigniter4.github.io/CodeIgnit...index.html


Sir, I tried the News Tutorial already but still i don't get any data on my controller.
Quote:helper('form');
$data = $this->request->getPost();

print_r($data);

Route
Quote:$routes->match(['get', 'post'], 'rules', [Appointment::class, 'rules']);
$routes->match(['get', 'post'], 'appointment', [Appointment::class, 'appointmentForm']);
Reply


Messages In This Thread
problem with form data - by anuragk - 04-11-2023, 07:50 AM
RE: problem with form data - by gosocial2 - 04-11-2023, 12:59 PM
RE: problem with form data - by anuragk - 04-11-2023, 11:21 PM
RE: problem with form data - by kenjis - 04-11-2023, 11:51 PM
RE: problem with form data - by anuragk - 04-11-2023, 11:59 PM
RE: problem with form data - by kenjis - 04-12-2023, 12:09 AM
RE: problem with form data - by anuragk - 04-12-2023, 12:36 AM
RE: problem with form data - by kenjis - 04-12-2023, 12:46 AM
RE: problem with form data - by anuragk - 04-12-2023, 12:55 AM
RE: problem with form data - by kenjis - 04-12-2023, 01:01 AM
RE: problem with form data - by anuragk - 04-12-2023, 01:09 AM
RE: problem with form data - by abatrans - 04-13-2023, 12:13 AM
RE: problem with form data - by anuragk - 04-13-2023, 05:12 AM
RE: problem with form data - by kenjis - 04-12-2023, 01:29 AM
RE: problem with form data - by anuragk - 04-12-2023, 02:06 AM
RE: problem with form data - by kenjis - 04-12-2023, 05:35 AM
RE: problem with form data - by anuragk - 04-12-2023, 06:28 AM
RE: problem with form data - by HermyC - 04-12-2023, 12:57 PM
RE: problem with form data - by anuragk - 04-12-2023, 10:55 PM
RE: problem with form data - by InsiteFX - 04-14-2023, 10:42 PM
RE: problem with form data - by kenjis - 04-14-2023, 11:19 PM
RE: problem with form data - by anuragk - 04-18-2023, 07:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB