Welcome Guest, Not a member yet? Register   Sign In
Form Value to URL
#2

[eluser]tokyotech[/eluser]
I usually use $_POST for forms, but it can be done with the $_GET. You need a controller with a method that processes the URL:

Code:
Color extends Controller
{
   public function search
   {
      $size = $this->uri->segement(2);
      $colour = $this->uri->segement(3);
      $txtr = $this->uri->segement(4);

      printf('you entered %s %s %s', $size, $colour, $txtr);
   }
}

So then you call http://localhost/projectName/index.php/c.../red/rough to use it.


Messages In This Thread
Form Value to URL - by El Forum - 09-05-2009, 12:40 PM
Form Value to URL - by El Forum - 09-05-2009, 01:01 PM
Form Value to URL - by El Forum - 09-05-2009, 01:04 PM
Form Value to URL - by El Forum - 09-05-2009, 01:26 PM
Form Value to URL - by El Forum - 09-05-2009, 01:56 PM
Form Value to URL - by El Forum - 09-05-2009, 02:00 PM
Form Value to URL - by El Forum - 09-05-2009, 02:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB