• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing the route

I have added the following route:

My idea was that in a form when I have 
<form name ="userinput" action="save_userinput" method="post">

would actually run the method save_userinput() in the Users class. 

But this does not seems to work. Is it possible to use route to change the "action" of a form? I found an example online which shows <form action="/action_page.php" method="get"> as sending the form to action_page.php. But CI doesn't work like this. So is it possible to send a form to a method in a class? 
proof that an old dog can learn new tricks

Messages In This Thread
changing the route - by richb201 - 11-08-2018, 06:54 PM
RE: changing the route - by ciadmin - 11-08-2018, 07:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.