<?php
ob_start();
session_start();
include "config.php";
function giris() {
echo " <body>
<form action=\"index.php?sayfa=hesapyarat\" method=\"post\">
  <div align=\"center\">
    <p class=\"style1\">ÜYELİK FORMU </p>
    <table width=\"328\" border=\"1\">
      <tr>
        <th width=\"139\" scope=\"row\">K.ADI:</th>
      <td width=\"173\"><input type=\"text\" name=\"nick\" />&nbsp;</td>
    </tr>
      <tr>
        <th scope=\"row\">ŞİFRE:</th>
        <td><input type=\"password\" name=\"pw\" />&nbsp;</td>
    </tr>
      <tr>
        <th scope=\"row\">&nbsp;</th>
      <td><input type=\"Submit\" value=\"KAYDET\" />&nbsp;</td>
    </tr>
    </table>
    <p><strong><em>ZCDesign İnternet Hizmetleri </em></strong></p>
  </div>
</form>
</body> ";   
}
function hesapac()
{
$nick = $_POST['nick'];
$pass = md5($_POST['pw']);
$tarih = date ("d/m/y");  
}

if (($nick == "") or ($pass == "")) 
{
header("location:index.php?sayfa=login&error=1");
}
else 
{
	$add = mysql_query("insert into register(nick,pw,tarih) values ('$nick','$pass','$tarih')  ");
		if(! $add) { print "Üye ekleme başarısız !";}
		else {header("location:index.php");}
}
?>
bir de böyle dene.