Adding words from form to url -


so have little problem. have url this:

localhost/my/web/plan?dzien=1&mies=4&rok=2015

and it's form:

<form action = "{{ app.request.getrequesturi() }}" method = "get">     <div class="input_container">         <input type="text" id="country_id" name="produkt" onkeyup="autocomplet()">         <ul id="country_list_id"></ul>     </div>     <div>         <input type="submit" value="submit">     </div> </form> 

when use it, url this:

localhost/my/web/plan?produkt=makaron

but want add &produkt=makaron old url, this:

localhost/my/web/plan?dzien=1&mies=4&rok=2015&produkt=makaron

somebody have idea how can this?

you can add current url paremeters form hidden input fields.

<form action = "{{ app.request.getrequesturi() }}" method = "get">     <div class="input_container">         <input type="text" id="country_id" name="produkt" onkeyup="autocomplet()">         <ul id="country_list_id"></ul>     </div>     <div>         <input type="submit" value="submit">     </div>    <input type="hidden" name = "dzien" value = "{{//a stamemt value of url}}">   ..... </form> 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -