trying to register new user account to database

So when i enter details and click sign up button it trys to load signup.inc.php and post the code from checkresult > 0) in the browser instead of giving a success message or failed. anyone got any thoughts?
signup.inc.php