Take input from form and pass it to function using a wp-plugin

Fist off always enable Debug in WordPress when developing. Second pay attention to how you start and end quotes. I had a echo ‘ ‘ with ‘ in side of it. Taking that out solved my issue.