Help Needed Here

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

    Help Needed Here

    well at my site i getting bit of problem when new registers at my site they are gender are not setted n they shemale n even bday n location while registering cant be setted n i cant see their browsers just if they use opera or mozilla i can see it n in wml some users are geting error like file format unknown so can i get some help here to sort it out thanks

    #2
    any help

    Comment


      #3
      <div class='quotetop'>QUOTE (johnny @ Dec 22 2008, 05:19 AM) <{POST_SNAPBACK}></div>
      any help[/b]

      be specific... can you post here your website... or post here any pictures about the error... how can we solve it without knowing the specific items one by one...
      Services

      Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

      Below is a list of services I offer:

      Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

      Rates

      General consulting – My current hourly rate is $100 / hour.
      Custom Wapsite Community - My current rate is $500 / Wap Community Development.

      Comment


        #4
        lava what else lol
        quick fix is to register globals on
        but it may cause you problems later with hackers lol

        Comment


          #5
          i have sorted out with the globals but now i m facing 1 problem that when new user registers at my site it shows them as shemale gender even though they set their gender to male/female while registering nd cant even see asl

          Comment


            #6
            you havent registed globals on properly otherwize you wouldnt be getting that problem :P

            the other way to do it is to use:

            $sex = $_POST["sex"];
            $age = $_POST["age"];
            $location = $_POST["location"];

            etc or what ever your sting names are :P

            Comment


              #7
              <div class='quotetop'>QUOTE (something else @ Dec 22 2008, 02:58 PM) <{POST_SNAPBACK}></div>
              you havent registed globals on properly otherwize you wouldnt be getting that problem :P

              the other way to do it is to use:

              $sex = $_POST["sex"];
              $age = $_POST["age"];
              $location = $_POST["location"];

              etc or what ever your sting names are :P[/b]
              just add this to register.php


              ok...

              you should put this there... just add it in register.php
              Services

              Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

              Below is a list of services I offer:

              Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

              Rates

              General consulting – My current hourly rate is $100 / hour.
              Custom Wapsite Community - My current rate is $500 / Wap Community Development.

              Comment


                #8
                $uid = $_POST["uid"];
                $pwd = $_POST["pwd"];
                $cpw = $_POST["cpw"];
                $usex = $_POST["usex"];
                $uloc = $_POST["uloc"];
                $bday = $_POST["bday"];
                connectdb();
                $brws = explode(" ",$_SERVER[HTTP_USER_AGENT] );
                $ubr = $brws[0];
                $ipr = getip();
                $uip = explode(".",$ipr); </br> isnt this right one

                Comment


                  #9
                  that looks ok

                  Comment


                    #10
                    if its still not working then your function in core.php has the strings mixed up round the wrong way
                    function register($sex,$bday,$pwd);
                    etc is mixed round the wrond way

                    Comment


                      #11
                      <div class='quotetop'>QUOTE (something else @ Dec 23 2008, 01:49 PM) <{POST_SNAPBACK}></div>
                      if its still not working then your function in core.php has the strings mixed up round the wrong way
                      function register($sex,$bday,$pwd);
                      etc is mixed round the wrond way [/b]
                      this is what from core.php</br>$rform = "$errl

                      ";
                      $rform .= "<form action=\"register.php\" method=\"post\">";
                      $rform .= "$ue UserID: <input name=\"uid\" format=\"*x\" maxlength=\"15\"/>
                      ";
                      $rform .= "$pe Password: <input type=\"password\" name=\"pwd\" format=\"*x\" maxlength=\"30\"/>
                      ";
                      $rform .= "$ce Password: <input type=\"password\" name=\"cpw\" format=\"*x\" maxlength=\"30\"/>
                      ";
                      $rform .= "Birthdaye.g.1985-05-01) <input name=\"tfbdy\" format=\"NNNN\-NN\-NN\"/>
                      ";
                      $rform .= "Sex:";
                      $rform .= "<select name=\"usx\" value=\"M\">";
                      $rform .= "<option value=\"M\">Male</option>";
                      $rform .= "<option value=\"F\">Female</option>";
                      $rform .= "</select>
                      ";
                      $rform .= "Location: <input name=\"ulc\" maxlength=\"100\"/>
                      ";

                      $rform .= "<input type=\"submit\" value=\"Register\"/>";
                      $rform .= "</form>";
                      return $rform;

                      }

                      Comment


                        #12
                        your problem may be with register.php when i first got the script i had the same problems, i&#39;ve copied a working register.php below, remember though if you use a wap and web version you&#39;ll need to check both versions of the site, as you say its only some browsers this may be your problem (with the wap version) in which case just edit the wml version of register.php to add the missing fields

                        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
                        header("Cache-Control: no-cache, must-revalidate");
                        header("Pragma: no-cache");
                        //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;);
                        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"];
                        $ubr = $_POST["browserm"];
                        $usx = $_POST["usx"];
                        $day = $_POST["day"];
                        $month = $_POST["month"];
                        $year = $_POST["year"];
                        $ulc = $_POST["ulc"];
                        $info = $_POST["info"];
                        $brws = $_POST["brws"];
                        $usex = $_POST["usex"];

                        include ("config.php");
                        include ("core.php");

                        connectdb();
                        $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name=&#39;sitename&#39;"));
                        $sitename = $sitename[0];
                        $brws = explode("/",$_SERVER[&#39;HTTP_USER_AGENT&#39;]);
                        $ubr = $brws[0];

                        echo "<head>";
                        echo "<title>$sitename</title>";
                        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/black_medium.css\">";
                        echo "</head>";
                        echo "<body>";
                        $ipr = getip();
                        $uip = explode(".",$ipr);

                        if((!canreg())||(isipbanned($ipr,$ubr)))



                        {



                        echo "

                        ";



                        echo "<img src=\"../images/notok.gif\" border=\"0\" alt=\"X\"/>Registration is closed at the moment";



                        echo "</p>";



                        }else{



                        echo "

                        ";



                        ?>



                        [img]../images/point.gif[/img]



                        Allowed characters in userid and password are a-z, 0-9, and -_ only




                        [img]../images/point.gif[/img]



                        No vulgar words are accepted in Username




                        [img]../images/point.gif[/img]



                        Username and Password must contain at least 4 characters




                        [img]../images/point.gif[/img]



                        Username must begin with a letter and cannot contain capitals




                        [img]../images/point.gif[/img]



                        Password will be case sensitive




                        <?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(;



                        }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("/",$_SERVER[&#39;HTTP_USER_AGENT&#39;]);


                        $ubr = $brws[0];



                        //$fp = fopen("gallery/info.txt","a+");



                        //fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n");



                        //fclose($fp);







                        echo "Registration completed successfully!
                        ";



                        echo "
                        Username: $uid
                        ";



                        echo "Password: $pwd

                        ";



                        if(validation())



                        {



                        echo "Please give us up to 12hrs to validate you (normally it be done within an hour)";



                        }



                        $tolog = true;



                        }



                        echo "</p>";



                        }



                        echo "

                        ";



                        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 = &#39;From: owner@blueslagoon.uk.to&#39; . "\r\n" .



                        &#39;Reply-To: fiona@scotland.uk.to&#39; . "\r\n" .



                        &#39;X-Mailer: PHP/&#39; . phpversion();



                        mail($email, $subj, $msg, $headers);



                        echo "<a href=\"login.php?loguid=$uid&amp;logpwd=$pwd\"><im g src=\"../images/home.gif\" alt=\"\"/>Login</a>";



                        }else{



                        echo "0 <a accesskey=\"0\" href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";



                        }



                        echo "</p>";



                        echo "</body>";



                        ?>



                        </html></div>
                        :p:p:p

                        Comment


                          #13
                          or better still just overwrite the site with the version i uploaded recently
                          :p:p:p

                          Comment

                          Working...
                          X