search bar help?

I’m thinking something along the lines of?

if the url query= input box value on my search page then the url query needs o change to input value on my search bar?

anyone help putting this into code??

thanks
matt