On Thu, 14 Feb 2002, Carsten Ziegeler wrote: > Hm, > > why don't you use a hidden input field in your form instead > of using the submit button? > > <input type="hidden" name="cocoon-action" value="Add"/> > > This is language independent and submit button text independent > and works.
This is not sufficient. What's up when you have more than one submit buttons i one form? ...all you *could* (but don't want to) do is to change the hidden inputs with javascript. How would to do this with hidden inputs <form> <input type="submit" name="cocoon-action-Add" value="Add"> <input type="submit" name="cocoon-action-Delete" value="Delete"> </form> As soon as you insert a hidden input for the action selection you form is tied to one action -- Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]