and just use ur script for getting the name?? makes sence....
or shud it just be a form?? such as:
code:
<?php
look_for_IP_in_database;
if not there, pop up form as a web page;
once submitted, procede to main page.
if yes there, then popup the main page;
?>
and cookie. u forgot the semicolons