Accessing form elements

Chris Hickman
Tue, 03 Jun 2008 22:46:35 -0000

I posted a question earlier but it didn''t come out that clear and I
have
spent the whole day looking this up.  Any help would be much
appreciated.

Here goes round 2:

I have several textareas on the screen (anywhere from 1 - 5).  Right now
I have them in a form and am using a submit button to pass the values to
the controller.  What I need to do is pass these values to the
controller using links located outside of the actual form.  When the
link is click the values from the textareas are passed to the controller
along with a :question parameter. The values of the textareas are saved
into the db and the :question param is used in a query and then the page
is redirected to another page with the result from the query as another
param.

The part I cannot seem to find an answer for is how to pass the values
of the textareas to the controller using  link_to(), not link_to_remote.
Or how do you access the textarea values and attach them to :value1 =>
????


I really hope that made more sense.

Thanks,

Chris