lundi 29 août 2016

Append form action with input variable

I have a form whose action is

<form action="/food/vegetable" method="POST" >

My controller method takes vegetable name as parameter

I would like to append the input vegetable name to the action. for example

<form action="/food/vegetable/{vegetableName}" method="POST" >

Is it possible to do this ? or is there a better way ? Please guide.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire