<?php $ua = $_SERVER['HTTP_USER_AGENT']; if($ua == "AIM/30 (Mozilla 1.24b; Windows; I; 32-bit)"){ //they are using aim and everything should work } else { //they aren't using aim so the screen name will not be added } ?>