This is how my script currently sends errors when the description is too short:
if(strlen($linkres->content) = minStoryLength ) { // if description is too short
$main_smarty->assign('submit_error', 'incomplete');
$main_smarty->display($the_template . '/submit_errors.tpl');
$error = true;
}
I want to send the same error message when the description does not include at least one of these tags/words:
<img><youtube><googlevideo><xoinks><break><vimeo><revver><myspace>
<veoh><wmv><dailymotion><ifilm><metacafe><tubeley><guba>
thanks for your help!
This is an alternative to inti’s solution.