From: Brian Candler Date: 2008-10-23T19:00:38+09:00 Subject: Re: using buttons in CGI Asaf Asaf wrote: > as I see the value of the submit button doesn't pass to the next form I think it does, so please post your code and output which shows otherwise. Especially show the value of cgi.params['submit'].inspect This assumes you have in your HTML. > another question : > if I want that one of the submit buttons will update the current form > with the adittional line, and the other submit button will update other > form, how can I do it using only one form and two submit buttons ? In both cases, the data is POSTed back to your CGI. It is up to you to take the appropriate action depending on which submit button was pressed. In one case you will re-display the data entry form, containing the already-entered data plus a new blank row. In the second case you perform whatever action you were normally taking on the submit. -- Posted via http://www.ruby-forum.com/.