added form and if statement to the post
Attempted to add passing in variables