In this code it takes phone 2 when I click box and copies the value to a que box . But when I change "phone2" to "email" so on the click it will copy the email value to the que box. The result is undefined. But if I put all numbers in the email address it copies that vaule. Help
echo "<TR bgcolor=$color>";
echo "<TD><input type=checkbox id=".$id." name='selected[]' value='$id' title='Select ($firstname $lastname)' alt='Select ($firstname $lastname)' accept=".$myrow['email'].";".$myrow['phone2']." onClick=\"sendValue($address);\"></td>";
echo "<TD>$lastname</td>";
echo "<td>$firstname</td>";
if ($email != '') {
echo "<td><input type=\"button\" value=\"$email\">
</td><input type=\"hidden\" name=\"hidden2\" value=\"$email\">";
} else {
echo "<td></td>";
}