Ive come across a slight error

When you browse and upload a new image, it does its thing and displays the output code for BB html etc etc

The problem is the code looks like this:
PHP Code: 
tp://tih.me/advert.php?pm=][IMG]http://tih.me/?dt=3EC2[/I 
As opposed to what it should look like:
PHP Code: 
tp://tih.me/advert.php?pm=3EC2][IMG]http://tih.me/?dt=3EC2[/I 
Notice the
PHP Code: 
advert.php?pm=3EC2 
in the second one.
BUT if after uploading you goto gallery and click your picture, it will display the correct output, but i cant reall expect useres to do that, they would just use the first output they are given, which takes them to a 404

Thanks
RR
roadrunner Reviewed by roadrunner on . IMG iFrame code with redirect Or atleast i think thats what i need... :facepalm: I have an Image Hosting website and at the moment if the thumbs are clicked it redirects via an ad.fly short code.. Its getting 1000+ UV's a day and only making me around $2 So what i want to do is get rid of the adf.ly link and have it so when an end user clicks the thumb in a forum or where ever its posted, it redirects to my site where a forced 5 second add is displayed then the link will display and off they go to the image. Rating: 5