errors in register

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    errors in register

    when my any member register in site,it displays Argh! No Profile! in user profile.but i want to display only male or female in gender section in user profile.so anybody please help me in that.

    register.php

    PHP Code:
    <?php
    header
    ("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    //header('Content-type: application/vnd.wap.xhtml+xml'); 
    echo "<?xml version=\"1.0\"?>";
    echo 
    "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    $uid 
    $_POST["uid"];
    $pwd $_POST["pwd"];
    $cpw $_POST["cpw"];
    $email $_POST["email"];
    include (
    "config.php");
    include (
    "core.php");
    connectdb();
    $sitename mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
    $sitename $sitename[0];
    $brws explode("/",$HTTP_USER_AGENT);
    $ubr $brws[0];
    echo 
    "<head>";
    echo 
    "<title>$sitename</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
    echo 
    "</head>";
    echo 
    "<body>";
    $ipr getip();
    $uip explode(".",$ipr);

    if((!
    canreg())||(isipbanned($ipr,$ubr)))
    {
        echo 
    "<p>";
        echo 
    "<img src=\"../images/notok.gif\" border=\"0\" alt=\"X\"/>Registration is closed at the moment";
        echo 
    "</p>";
    }else{
    echo 
    "<p>";
    ?>
    <img src="http://coding-talk.com/f14/images/point.gif" alt="!"/>
    Allowed characters in userid and password are a-z, 0-9, and -_ only<br/>
    <img src="http://coding-talk.com/f14/images/point.gif" alt="!"/>
    No vulgar words are accepted in Username<br/>
    <img src="http://coding-talk.com/f14/images/point.gif" alt="!"/>
    Username and Password must contain at least 4 characters<br/>
    <img src="http://coding-talk.com/f14/images/point.gif" alt="!"/>
    Username must begin with a letter and cannot contain capitals<br/>
    <img src="http://coding-talk.com/f14/images/point.gif" alt="!"/>
    Password will be case sensitive<br/>
    <?php
    $tolog 
    false;
    if(
    trim($uid)=="")
    {
        echo 
    registerform(1);
    }else if(
    trim($pwd)=="")
    {
        echo 
    registerform(2);
    }else if(
    trim($cpw)=="")
    {
        echo 
    registerform(3);
    }else if(
    spacesin($uid)||scharin($uid))
    {
        echo 
    registerform(4);
    }else if(
    spacesin($pwd)||scharin($pwd))
    {
        echo 
    registerform(5);
    }else if(
    $pwd!=$cpw)
    {
        echo 
    registerform(6);
    }else if(
    strlen($uid)<4)
    {
        echo 
    registerform(7);
    }else if(
    strlen($pwd)<4)
    {
        echo 
    registerform(8);
    }else if(
    isdigitf($uid))
    {
        echo 
    registerform(11);
    }else if(
    checknick($uid)==1)
    {
        echo 
    registerform(12);

    }else if(
    checknick($uid)==2)
    {
        echo 
    registerform(13);

    }else if(
    trim($email)=="")
    {
        echo 
    registerform(14);

    }else if(
    register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info$ubr)==1)
    {
        echo 
    registerform(9);
    }else if(
    register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info$ubr)==2)
    {
        echo 
    registerform(10);
    }else{
    //$brws = explode(" ",$HTTP_USER_AGENT);
        //$ubr = $brws[0];
        //$fp = fopen("gallery/info.txt","a+");
        //fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n");
        //fclose($fp);
        
      
    echo "Registration completed successfully!<br/>";
      echo 
    "<br/><b>Username: </b>$uid<br/>";
      echo 
    "<b>Password: </b>$pwd<br/><br/>";
      if(
    validation())
      {
      echo 
    "Please give us up to 12hrs to validate you (normally it be done within an hour) if you have not been after this period of time u can email the owner at: afta_drk@hotmail.com";
      }
      
    $tolog true;
    }
    echo 
    "</p>";
    }
    echo 
    "<p>";
    if(
    $tolog)
    {
    $msg "\n Username: ".$uid." \n Password: ".$pwd." \n\n ".$sitename." is a nice friendly chat community we are glad to hav u with us :o) pls feel free to bring ya m8s along \n\n Thank You\n".$sitename."";
    $subj "Registration details for ".$sitename."";
    $headers 'From: owner@wapdesire.com' "\r\n" .
    'Reply-To: owner@wapdesire.com' "\r\n" .
    'X-Mailer: PHP/' phpversion();
    mail($email$subj$msg$headers);
    echo 
    "<a href=\"login.php?loguid=$uid&amp;logpwd=$pwd\"><img src=\"../images/home.gif\" alt=\"\"/>Login</a>";
    }else{
    echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    }
    echo 
    "</p>";
    echo 
    "</body>";
    ?>
    </html>
    Last edited by godzilla; 15.03.09, 16:32. Reason: error in code

    #2
    upload htaccess file with register global on
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    Comment


      #3
      Code:
      $day = $_POST["day"];
      $month = $_POST["month"];
      $year = $_POST["year"];
      $usx = $_POST["usx"];
      add this into register.php
      sigpic

      Comment


        #4
        Try to set the selecti0n value to any of the two gender..I don't know..Just sharing my opini0n..
        My Blog: http://jhommark.blogspot.com
        My Facebook: http://www.facebook.com/jhommark
        My Official Site: http://www.undergroundweb.tk
        My Community Site: http://undergroundwap.xtreemhost.com

        Comment

        Working...
        X