twitter.classBEFORE the "HEAD" section of your page.
$twit = new twitter;
$twit->username="YOUR_TWITTER_USERNAME";
$twit->password="YOUR_TWITTER_PASSWORD";
if(isset($_POST['twmsg'])){
$msg = $_POST['twmsg'];
$twit->twpost($msg);
}
$twit->twhtmlhead();
$twit->twbox()