That is much more graceful than what I had come up with:
// discard blank entries
if (empty($remail[1])) {
unset ($remail[1]);
}
if (empty($remail[2])) {
unset ($remail[2]);
}
if (empty($remail[3])) {
unset ($remail[3]);
}
if (empty($remail[4])) {
unset ($remail[4]);
}
if (empty($remail[5])) {
unset ($remail[6]);
}
if (empty($remail[7])) {
unset ($remail[7]);
}
if (empty($remail[8])) {
unset ($remail[8]);
}
if (empty($remail[9])) {
unset ($remail[9]);
}
if (empty($remail[10])) {
unset ($remail[10]);
}
// check for duplicates
for ($t=0;$t<count($remail);$t++)
{
{
for ($tt=$t+1;$tt<count($remail);$tt++)
{
if ($remail[$tt]==$remail[$t])
{
$dupe=1;
}
}
}
Thanks Vincent! oh and BTW... they must pay you to post to these forums - I have never seen someone so active before!