Welcome to PHPBuilder! When posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.
Your form has no entity named 'submit', thus this if() statement:
if (!isset($_POST['submit']))
will never be true. (Note that you do have one - a submit button - named 'button', though.)