javascript? nah rubbish!
if (empty($namefield))
{
// conditions here
}
else
{
// conditions if met
}
hope this gives u a hand for the future
best bet re . ip is to get onto isp, depending on the country they might not be able to give u the name of subscriber, re data protection (eg uk data protection act 1998) but a complaint to appropriate authorites will lead to prosecution of offender if requested.
after the successful prosecution, the identity will be revealed 😉 if ya can be bothered!!!!!!