Welcome Guest, Not a member yet? Register   Sign In
change GET query string
#7

When user submits filter form the url will be example.com/search?brand=&model=foo

and then I filter products according to these values in GET field, when filtering I discard that 'brand' because it doesnt have a value.

then I load same view again with filtered data. 

But in browser stays same example.com/search?brand=&model=foo 

I can delete brand from url  using javascript before submitting filter form. But I want to know if there is way to delete brand from url in php
I mean when send example.com/search?brand=&model=foo request the responded url will be example.com/search?model=foo

if I build url string using http_build_query() It wont change the url field in browser it example.com/search?brand=&model=foo
Reply


Messages In This Thread
change GET query string - by neuron - 01-24-2017, 02:18 AM
RE: change GET query string - by Khanh Minh - 01-24-2017, 03:04 AM
RE: change GET query string - by neuron - 01-24-2017, 03:28 AM
RE: change GET query string - by Sezu - 01-25-2017, 01:47 AM
RE: change GET query string - by neuron - 01-25-2017, 03:58 AM
RE: change GET query string - by Sezu - 01-25-2017, 05:52 AM
RE: change GET query string - by neuron - 01-25-2017, 06:35 AM
RE: change GET query string - by Sezu - 01-25-2017, 06:52 AM
RE: change GET query string - by salain - 01-25-2017, 07:07 AM
RE: change GET query string - by neuron - 01-25-2017, 07:23 AM
RE: change GET query string - by Wouter60 - 01-26-2017, 03:29 AM
RE: change GET query string - by ivantcholakov - 01-26-2017, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB