Got the query to work, next need to work on detecting / picking up input variables from post