Location: PHPKode > projects > Cdub's Logs > cdubs-logs/givnic.php
<?
include("cdub_config.php");
?>
<?
if(isset($Submitnic)) {
$updatenic = mysql_query("UPDATE cdub_visitors SET
nic = '$nicname'
WHERE id = '$mip'");
$updatepag = mysql_query("UPDATE cdub_pagviews SET
nic = '$nicname'
WHERE ip = '$pip'");
echo("Thanks! Nicname has been added. Click the X to close this window and refresh the logs page");
} else {
?><table width="400" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr><form method="post" action="<?=$PHP_SELF?>?ipid1=<?=$ipid?>">
      <td width="400" height="13" valign="top">
        <?=$ip?>
        <br>
        <input type="text" name="nicname">
	<input type="hidden" name="mip" value="<?=$ipid?>">
	<input type="hidden" name="pip" value="<?=$ip?>">
      <label>
      <input type="submit" name="Submitnic" value="Assign Nicname">
      </label></td></form>
  </tr>
</table>
<?
}
?>
Return current item: Cdub's Logs