Ok I think that I have it but if anyone here thinks I am doing this all wrong I am open to suggestions :p For others w/ the same problem you want to see the preg_replace function in the manual. [url=http://us3.php.net/manual/en/function.preg-replace.php]http://us3.php.net/manual/en/function.preg-replace.php[/url] [b]I HAD[/b] $imagename = $data['image']; which came out like: $imagename = <img src="%%URLofImages%%/WHATINEED.JPG" style="border: 0px">; and all I wanted was "WHATINEED.JPG" so I needed to remove text before and after that text. [b]THIS IS HOW I DID IT[/b] $imagetemp = $data['image']; $patterns[0] = '/<img src=\"%%URLofImages%%\//'; $patterns[1] = '/\" style=\"border: 0px\">/'; $replacements[1] = ''; $replacements[0] = ''; $imagename = preg_replace($patterns, $replacements, $imagetemp); There could be a better way, and if anyone here knows then please feel free I just wanted to post the answer that I had in case it would help others in my spot. Thanks for the great board, I will be using this often on my journal to learn PHP. Com-