Is there an error message? Please post it.
Otherwise please explain what is/is not happening

Please put your code in code tags to preserver the formatting. See the # icon above the text input...