Don’t use isset($_POST['submit'])
. Read this article.
Then read this one.
http://stackoverflow.com/a/29255185
I’ve noticed that a lot of people who use isset($_POST['submit'])
all still use MySQL_*. So bad practice with deprecated functions = not a very secure website.