<snip> input type=submit and then check it with if(isset($_POST['submit'])) { ... } </snip> ================= Instead of checking using your method to check if the form has been submitted, you could try the following: if ($REQUEST_METHOD=='POST') { ... } Regards, Chris