So... are you actually writing your own message board system / forum in PHP from scratch or using an existing one? I'm not entirely sure what you are trying to achieve here...I'll be writing it in PHP more than likely, just for a message board.
I've written the message board from scratch, but I can't think of an effective way to add image tags automatically.
Saves people having to type out "<img src="Lynkzzzz.gif>" manually.
Ah, got it. I would probably do something along the lines of popping up a dialog using Javascript that captures the user's input. Once you've got that input do the necessary validation and parsing so that you build up your "<img...>" string. Once that is done, append / insert that built string to the contents of the text input area used for catching the user's post (by updating the DOM). That should do the trick.
If its your own software and users can stay logged in, think a bit about security.
If you let people put their on javascript in for example then it will allow them to steal the cookies from other peoples machines (did a bit of hacking like that back when forums were a new thing and not as well developed as now)