Hi Wade > foreach ($_POST as $nkey => $new){ > foreach($olddata as $okey => $old) { > if ($new == $old) { > print '"'.$new.'" AND "'.$old.'" are the <b style="color:red">SAME</b>; > Next... <br />'; > } else { > print '"'.$new.'" AND "'.$old.'" are the <b>DIFFERENT</b>; Next... <br > />'; > } > } > }
that was close ;) if (is_array($_POST) && count($_POST)>0) foreach ($_POST as $key=>$value) { if (!isset($olddata[$key])) { handlethiscondition('post data not in old data'); } else if ($_POST[$key]==$olddata[$key]) { handlethiscondition('post data is equal to old data'); } else { handlethiscondition('post data is different to old data'); } // if olddata exists } // each $_POST ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/