On my search form I want to allow my users to use the + and - for doing advanced searches. For example, they should be able to use +lavender -burns to return results that contain lavender but not burns. Through my research on google I’ve realized that I need to be using urlencode and urldecode to allow a plus to be used in the URL. I’m a bit confused on where I would apply this to a simple form that uses GET. Do I need some sort of javascript that is executed when the Go button is clicked?
Usually, the browser will automatically urlencode form fields when a form is submitted VIA GET. Just make sure you decode it in the script that processes the query.