firstly can i say that is the worst coded thing i have ever seen in my life 🙂
if that is the ACTUAL shoutbox then i have NO idea how that got famous becoz it looks like it was programmed by an infant.
and use $_REQUEST['act'] if it is coming from the url or by post.
and i cant be bothered readinf thru nemore cuz its a total mess.
if u programmed it then ignore the flaming above, becoz as u confess ur a n00b, these insults r only if it is the official shoutbox.