Added function to get query strings values by name

Continued work on add post redirection