Hi. Don't forget to increment j :
> //loop to check for bad email addresses: > $j = 0; > $flag = 0; > while ($j < count($User)){ > if > (($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$", > $User[$j])) > { > $flag = 1; > $errorNo = $j + 1; > } >$j++; >} -- TURPIN Jean Max STUDENT College of Reunion's Island -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]