Hi,

I'm tryin to make an upload section for newsscript with vBcode for images.

my problem is that when i submit i want the script to sense whether or not there is any vbcode for images or not that would look something like

PHP Code:
$news ereg(dont know **** what to come in here,$news); 
if (!
file and vbcode for images eq true) { 
echo 
"You must upload an image if you use the vbcode img tag"

else { 
if (
$news != upload filename) { 
echo 
"Your upload image must have the same name as specified in vbcode"

else { 
submit and upload 


anyone have a clue what i'm talking about??

Andri Mar Jónsson