form POST to same page, request method remains GET |
I think you need to remove the trailing slash on this line:
PHP Code: <form action="/klanten/<?= esc($klant['slug']) ?>/" method="post"> Like this: PHP Code: <form action="/klanten/<?= esc($klant['slug']) ?>" method="post"> Because CI uses regex to match the routes and I think you won't get a match with a trailing slash. The user guide gives this example: Quote:
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
form POST to same page, request method remains GET - by BFlokstra - 04-17-2021, 08:40 AM
RE: form POST to same page, request method remains GET - by includebeer - 04-17-2021, 03:10 PM
RE: form POST to same page, request method remains GET - by BFlokstra - 04-17-2021, 03:24 PM
RE: form POST to same page, request method remains GET - by includebeer - 04-17-2021, 03:28 PM
RE: form POST to same page, request method remains GET - by BFlokstra - 04-17-2021, 03:46 PM
|