Forum
Checkboxes to filter data in Blog App
My PHP knowledge is very low so please bear this in mind. I just wanted to know if this was even possible before I looked into how to do it.
Can you pass a value from a checkbox into the address bar to filter content?
At the moment I have lots of businesses that have a checkbox ticked if they accept vouchers. Currently ticking yes just makes the ribbon appear on the individual pages, e.g. https://lovebedfordbusinesses.co.uk/businesses/business.php?s=argos
What I would like is to be able to display all businesses with the voucher checkbox ticked.
So it'd be something like: https://lovebedfordbusinesses.co.uk/businesses/archive.php?vouchers=yes
I'm currently doing a similar thing for all businesses that are Click & Collect: https://lovebedfordbusinesses.co.uk/businesses/click-and-collect.php?tag=clickandcollect
However, this is controlled by just using the 'tag' feature in the Blogs. I was wondering since I have so many businesses that are ticked as accepting vouchers, whether there was a quick way to do it without the tagging.
You'd use a filter: