Ah! thats because, you don't have a name for submit button, but you are checking if submit is set.
if(!isset($_POST['submit'])){ Just give a name to submit button. name="submit" and it will work.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
Offline 3,878 posts
since Nov 2007