这么简单的问题
select * from 表 where username='你输入的名字'
如果有就表示重复

解决方案 »

  1.   

    把用户输入到文本框里的信息提出来传到处理程序,然后返回结果www.pinson.cn
      

  2.   

    我要的不是sql语句,我要的是点击链接打开一个窗口,把表单值传过去。
      

  3.   

    username=request("username")
    openDB()
    If conn.Execute("Select * from users where user='"&username"'" ).eof Then
    response.write "用戶名&quot; <font color=red>"&username&"</font> &quot;可以正常注冊!"
    else
    response.write "您所選的用戶名&quot; <font color=red>"&username&"</font> &quot;已經有用戶使用,請另外選擇一個用戶名。"
    end if
    closeDB()response.End()
      

  4.   

    程序及sql语句我都会组织,目前就是这种JavaScript效果做不出来。
      

  5.   

    你可以把网站的js下下来,看他们怎么写得不就成了:)www.pinson.cn
      

  6.   

    设置target属性<form target="aaa"></form>
      

  7.   

    163弹出那个页面的地址为http://reg4.163.com/checkssn.jsp?username=namename就是你在文本框里输入的内容。还要我再说下去么?
      

  8.   

    <a href="javascript:checkssn('/checkssn.jsp')";>查看用户名是否被占用</A>function checkssn(gotoURL) 
    {   
     var ssn=form.username.value.toLowerCase();
     if (checkUserName(ssn))
      {
        var open_url = gotoURL + "?username=" + ssn;
        window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=322,height=200');
      }
    }
      

  9.   

    http://reg4.163.com/js/regcheckdata.js
    下载下来,最后的一个function就是楼主要的喽