Use reflection to determine form variables