Fixes split querystring bug
Moves variables inside function
Merge pull request #7 from joshjeong/form

Fixes querystring bug