maybe you should give us more detail on what you really want to do, are you at index.php and you want to submit to chat.php, but don't want to go to chat.php or what
if so you can include chat.php in all your pages, then submit to $_SERVER['PHP_SELF'] and it should work for ya
remember we can't read your mind, so explain as much as you can when asking questions