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

[eluser]Nick_MyShuitings[/eluser]
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.

I just don't understand what it is that you are trying to do or why. If you really really for some odd reason need the form to submit to http://example.com/MyController/MyFuncti...FromInput2 then you could use Javascript to dynamically change the form action so that when the person hits submit it will just redirect them to that method... but once again that makes no sense from a logical standpoint nor from a "write less code" standpoint, when you could just post to that method and get the values out.

Please provide a USER STORY for what you're trying to do, with a few steps:

1) user goes to Controller/Method1 and see the form
2) user submits the form to Controller/Method2...

And that's where I lose your logic.


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