Welcome Guest, Not a member yet? Register   Sign In
form creation and passing variables
#5

[eluser]arcology29[/eluser]
[quote author="Nick_MyShuitings" date="1284186994"]What I don't get really is your USE CASE. For example, if you are sending a form and want to work with that data in a controller, just have the form submit the data to that controller/method. There is no need to have it submit it to one spot, use the values whether get or post to make a url, and then redirect, retrieve the values from the URI and then do stuff with them... that just doesn't make any sense to me and it seems like what you are requesting.[/quote]

You got it right what I want to do, now let me explain the reasons behind. The thing is I am creating a vacation website, which shows hotel information. I want to have the variables on the URL because let's suppose you find a nice hotel you want to show to a friend, so you give him the URL to show it to him, but without the variables on the URL it will just show your friend the vacation site main page.
Just like in youtube, i.e. http://www.youtube.com/watch?v=2fEkcht8TCo the video info on the last part via Get, but since I am using Post you can't share hotel info through a URL. Of course I can make CI work with Get, but I wanted to see if I can avoid it just because CI discourages it (no other reason really), and tells you to use segmented urls.

I hope that explains clearly my reasoning, and have in mind I'm a newbie to CI so maybe I'm missing something here.


Messages In This Thread
form creation and passing variables - by El Forum - 09-08-2010, 08:56 PM
form creation and passing variables - by El Forum - 09-09-2010, 04:09 PM
form creation and passing variables - by El Forum - 09-10-2010, 06:43 PM
form creation and passing variables - by El Forum - 09-10-2010, 07:36 PM
form creation and passing variables - by El Forum - 09-10-2010, 09:38 PM
form creation and passing variables - by El Forum - 09-11-2010, 08:19 AM
form creation and passing variables - by El Forum - 09-11-2010, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB