How to pass value from form to url parameter in my sidebar i have block with a form where users add name of restaurant and when they cick Submit they are supposed to be redirected to a page where my webform is.

I need url like this /add-your-restaurant?key=value-from-text-field but im not sure how to pass that value in url with my form.

I have already %get[key] as default value for my Name field in webform.

This is my html form:

&lt;form name="addres" id="addres" method="post" action=""&gt;
&lt;span&gt;
&lt;input type="text" name="addresfield" class="resfield" value="Enter your Restaurant name"/&gt;
&lt;/span&gt;
&lt;input type="button" class="btn"/&gt;
&lt;/form&gt;
This is solution and working form as desired.

&lt;form name="addres" id="addres" method="get" action="add-your-restaurant"&gt;
 &lt;span&gt;&lt;input type="text" name="addresfield" class="resfield"
 name="key" value="Enter your Restaurant name"/&gt;&lt;/span&gt;
&lt;input type="submit" class="btn"/&gt;
&lt;/form&gt;