你的php配好了吗?如果是把代码给看看。

解决方案 »

  1.   

    这是registform
    <HTML>
    <HEAD>
    <TITLE> &ETH;&Acirc;&Oacute;&Atilde;&raquo;§×&cent;&sup2;á </TITLE>
    <META content="text/html;charset=gb2312" http-equiv="Content-Type"></META>
    <META HTTP-EQUIV="Content_Language"CONTENT="zh-tw"></meta></HEAD>
    <BODY  background=tupian/BGROUND.GIF><form name="entryform" method="post" action="<addnewcustom.php>">
    <table class=titile width="90%">
    <tbody>
    <tr>
    <th align=middle calss=title><h2><b><font face="&Aacute;&yen;&Ecirc;é" size="6">&Oacute;&atilde;&para;ù&micro;&ccedil;&Oacute;°&Icirc;&Yacute;&Oacute;&Atilde;&raquo;§×&cent;&sup2;á</font></b></h2></th>
    </tr>
    </tbody>
    </table>
    <hr>
    <h5>&acute;&Euml;±í&cedil;&ntilde;&Atilde;&iquest;&Iuml;&icirc;&para;&frac14;±&Oslash;&ETH;&euml;&Igrave;&icirc;&ETH;&acute;,&Ccedil;&euml;&Auml;ú&Egrave;&ccedil;&Ecirc;&micro;&Igrave;&icirc;&ETH;&acute;</h5>
    <table class =post>
    <tbody><tr>
    <td width=190><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;ú&micro;&Auml;&Oacute;&Atilde;&raquo;§&Atilde;&ucirc;:</h4></td>
    <td ><input type="text" name="username" size=25 ></td>
    <td>(&Oacute;&Eacute;&Oacute;&cent;&Icirc;&Auml;&raquo;ò&Ecirc;&yacute;×&Ouml;×é&sup3;&Eacute;,&Ccedil;&euml;&sup2;&raquo;&Ograve;&ordf;&sup2;&raquo;&sup3;&not;&sup1;&yacute;16&cedil;&ouml;×&Ouml;·&ucirc;)</td>
    </tr><tr>
    <td class=label><h4>&Ccedil;&euml;&Ntilde;&iexcl;&Ocirc;&ntilde;&Auml;ú&micro;&Auml;&ETH;&Ocirc;±&eth;:</h4></td>
    <td><input checked type="radio" name="gender" value=0 >&Auml;&ETH;
    &nbsp;&nbsp;<input type="radio" name="gender" value=1 >&Aring;&reg;</td>
    </tr>
    <tr> <td align=left><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;ú&micro;&Auml;&Atilde;&Uuml;&Acirc;&euml;:</h4></td>
    <td><input type="password" name="password1"size=25></td>
    <td>(&Oacute;&Eacute;&Oacute;&cent;&Icirc;&Auml;&raquo;ò&Ecirc;&yacute;×&Ouml;×é&sup3;&Eacute;,&Atilde;&Uuml;&Acirc;&euml;&Ouml;&Aacute;&Eacute;&Ugrave;&Ograve;&ordf;6&Icirc;&raquo;)</td>
    </tr><tr>
    <td ><h4>&Ccedil;&euml;&Ocirc;&Ugrave;&Ecirc;&auml;&Egrave;&euml;&Ograve;&raquo;±é&Auml;ú&micro;&Auml;&Atilde;&Uuml;&Acirc;&euml;:</h4></td>
    <td><input type="password" name="password2" size=25></td>
    </tr><tr>
    <td class=label><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;ú&micro;&Auml;&Otilde;&aelig;&Ecirc;&micro;&ETH;&Otilde;&Atilde;&ucirc;:</h4></td>
    <td><input type="text" name="realname" size=25 ></td>
    <td>(&Ograve;&Ocirc;±&pound;&Ouml;¤&Auml;ú±&frac34;&Egrave;&Euml;&Ecirc;&Otilde;&micro;&frac12;&Eacute;&Igrave;&AElig;·)</td>
    </tr><tr>
    <td class=label><h4>&Auml;ú&micro;&Auml;Email&Ecirc;&Ccedil;:</h4></td>
    <td><input type="text" name="email" size=25 ></td>
    <td>(·&cent;&Euml;&Iacute;&Auml;ú&micro;&Auml;×&cent;&sup2;á&ETH;&Aring;&Iuml;&cent;)</td>
    </tr><tr>
    <td class=label><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;ú&micro;&Auml;&micro;&ccedil;&raquo;°:</h4></td>
    <td><input type="text" name="phone" size=25 ></td>
    <td>(&Icirc;&Ograve;&Atilde;&Ccedil;&raquo;á±&pound;&Atilde;&Uuml;&micro;&Auml;)</td>
    </tr><tr>
    <td class=label><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;ú&micro;&Auml;&Oacute;&Ecirc;±à:</h4></td>
    <td><input type="text" name="zipcode" size=25 ></td>
    <td>(&Ograve;&Ocirc;±&atilde;&Oacute;&Ecirc;&frac14;&Auml;)</td>
    </tr></table>&nbsp
    <table>
    <tr valign=top>
    <td width=190><h4>&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&Auml;&atilde;&micro;&Auml;&Iuml;ê&Iuml;&cedil;&micro;&Oslash;&Ouml;·:</h4></td>
    <td><textarea name="address" cols=60 rows=5></textarea></td>
    </tr>
    </table>
    &nbsp
    <hr>
    <table>
    <tr>
    <td width=250></td>
    <td width=150><input type="submit" value="&Egrave;·&Egrave;&Iuml;"></td>
    <td><input type="submit" value="&Ccedil;&aring;&sup3;&yacute;"></td>
    <td width=180 align=right><a href=front.php><b><font color=black>·&micro;&raquo;&Oslash;&Ecirc;×&Ograve;&sup3;</font></b></a></td>
    </tr>
    </table>
    </form>
    </BODY>
    </HTML>
      

  2.   

    <form name="entryform" method="post" action="<addnewcustom.php>"><addnewcustom.php>是什么意思啊??
      

  3.   

    应该是<form name="entryform" method="post" action="addnewcustom.php">
      

  4.   

    这是addnewcustom.php
    <?php
    require("head2.php");if(($username!="")and($password1!="")and($password2!="")and($realname!="")and($email!="")and($zipcode!="")and($address!="")and($phone!=""))
       {echo "&nbsp;";
       echo "&nbsp;";
       echo "<p><center><font color='f85738'size='4'>对不起,您输入的信息不全</font>";
      echo "<font color='f85738' size='4'>请点击</font><a href='javascript:history.go(-1);'><b><font color='bcB9bc'size='4'>这里</font></b></a><font color='f85738'>重新输入</font>";
      echo " </center>";
      exit;}  else
      {if (password1!=password2)
       {echo "&nbsp;";
      echo "&nbsp;";
      echo "<p><center><font color='f85738'size='4'>对不起,两次密码不一致</font>";
      echo "<font color='f85738' size='4'>请点击</font><a href='javascript:history.go(-1);'><b><font color='bcB9bc'size='4'>这里</font></b></a><font color='f85738'>重新输入</font>";
      echo " </center>";
      exit;}else { $con=mysql_connect("localhost");
           mysql_select_db("myshop");
           $result="select * from userinfo where userid=$username";
            if ($result!="")
               {echo "&nbsp;";
                  echo "&nbsp;";
                  echo "<p><center><font color='f85738'size='4'>这个用户名已经被注册过</font>";
                   echo "<font color='f85738' size='4'>请点击</font><a href='javascript:history.go(-1);'><b><font color='bcB9bc'size='4'>这里</font></b></a><font  color='f85738'>重新输入</font>";
                   echo " </center>";
                   exit;}  else {$query="insert into userinfo (userid,password,realname,email,zipcode,address,phone,gender)valuese('$username','$password1','realname','$email','$zipcode','$address','$phone')";
     exit;}
    }
      }
    ?>