Need A Urgent Help Again Please Help Me

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

    Need A Urgent Help Again Please Help Me

    in my room some people are useing operamini and registering ...... like this nick ::::

    madarchod_bainchod_putkichoda_dhoner_po_vodamarani _rendy_magi_chotmarani_mandar_
    o_chotmaranir_po_hoga_haowar_po_chudir_vai_guder_m agi_dhon_chosa_chater_bal_putk
    _chodanir_pola_punger_baccha_madarchod_bainchod_pu tkichoda_dhoner_po_vodamarani_
    endy_magi_chotmarani_mandar_po_chotmaranir_po_hoga _haowar_po_chudir_vai_guder_ma
    i_dhon_chosa_chater_bal_putki_chodanir_pola_punger _baccha_madarchod_bainchod_put
    ichoda_dhoner_po_vodamarani_rendy_magi_chotmarani_ mandar_po_chotmaranir_po_hoga_
    aowar_po_chudir_vai_guder_magi_dhon_chosa_chater_b al_putki_chodanir_pola_punger_
    accha_madarchod_bainchod_putkichoda_dhoner_po_voda marani_rendy_magi_chotmarani_m
    ndar_po_chotmaranir_po_hoga_haowar_po_chudir_vai_g uder_magi_dhon_chosa_chater_ba
    _putki_chodanir_pola_punger_baccha__

    1000 of charctors of nick.

    echo "Username:
    <input name=\"nimi\" type=\"text\" format=\"*x\" maxlength=\"10\" emptyok=\"true\"/>
    ";

    this is coded in register page :

    maxlength = 10

    but from operamini flooder is taking 1000 nicks please help me on that

    #2
    Would help you but your have to explane it a bit better because i couldn&#39;t really understand that

    Comment


      #3
      think he wants to know how to limit the nimber of characters allowed for a username

      Comment


        #4
        Code:
        if(strlen($nimi)>10) {echo "Username must be 10 characters or less
        "} else {echo "register code here"}
        This code sould do the trick now users cant register a name longer then 10 characters

        Comment


          #5
          ok tommie thanks brother let me try this one hope it will work lets see

          Comment


            #6
            here is the code that i put ----

            if(strlen($nimi)>10) {echo "Username must be 10 characters or less
            "} else {echo "Username:
            <input name=\"nimi\" type=\"text\" format=\"*x\" maxlength=\"10\" emptyok=\"true\"/>
            "}

            but it won&#39;t work

            Parse error: syntax error, unexpected &#39;}&#39;, expecting &#39;,&#39; or &#39;;&#39; in /home/rockbdin/main/luonti2.php on line 26


            then i put ----

            if(strlen($nimi)>10) { echo "Username must be 10 characters or less
            "; } else { echo "Username:
            <input name=\"nimi\" type=\"text\" format=\"*x\" maxlength=\"10\" emptyok=\"true\"/>
            "; }

            its works and don&#39;t give any error but it don&#39;t work on the strlen one even now people can register more then 10 charactor so guys plz help me on this i will be really thank full to you all

            Comment


              #7
              lol the code sould be on the register code page not on the register form or else it wont work because inserted the code the wrong way

              Comment


                #8
                ok brother what i should put in this line : {echo "register code here"}

                Comment


                  #9
                  u sould put the insert into database code there
                  Code:
                  $reg = mysql_query("INSERT INTO mxit SET nick=&#39;".$nick."&#39;, number=&#39;".$num."&#39;,race=&#39;".$race."&#39;, age=&#39;".$bday."&#39;, sex=&#39;".$sex."&#39;, area=&#39;".$uloc."&#39;, regdate=&#39;".time()."&#39;, ipadd=&#39;".getip()."&#39;, browserm=&#39;".$ubr."&#39;,about=&#39;".$abt."&#39;");
                  note not this code ur own code

                  Comment


                    #10
                    brother mobile chat by ghost do not have any database it saves all data in .txt formats



                    if i put like this :

                    if (strlen($nimi)>10) {echo "Username must be 10 characters or less
                    "} else {echo "register code here"}
                    if ($salasana !=&#39;&#39; && $nimi !=&#39;&#39;) {
                    if ($logo=="http://" OR $logo==""){$logo="../images/logo.gif";}
                    if ($site=="" OR $site==""){$site="not set";}
                    if ($name==""){$name="not set";}
                    if ($email=="@" OR $email==""){$email="not set";}
                    if ($age==""){$age="not set";}
                    if ($sex==""){$sex="not set";}
                    if ($location==""){$location="not set";}
                    if ($signiture==""){$signiture="not set";}
                    $date = date("d/m/Y");

                    $member = "../members/$nimi.txt";
                    $membersinfo = fopen($member, "w+");
                    fwrite($membersinfo, $logo."\n");
                    fwrite($membersinfo, $name."\n");
                    fwrite($membersinfo, $age."\n");
                    fwrite($membersinfo, $sex."\n");
                    fwrite($membersinfo, $location."\n");
                    fwrite($membersinfo, $signiture."\n");
                    fwrite($membersinfo, $site."\n");
                    fwrite($membersinfo, $email);
                    fclose($membersinfo);

                    $tiedsal = fopen(&#39;../text/sals.txt&#39;, &#39;a&#39;);
                    $salasana = crypt($salasana,&#39;password&#39;);
                    $lissal=$salasana.&#39;
                    &#39;;
                    fputs($tiedsal, $lissal);
                    fclose($tiedsal);

                    $tiednim= fopen(&#39;../text/nims.txt&#39;, &#39;a&#39;);
                    $lisnim=$nimi.&#39;
                    &#39;;
                    fputs($tiednim, $lisnim);
                    fclose($tiednim);

                    $tiednim= fopen(&#39;../text/profidate.txt&#39;, &#39;a&#39;);
                    $lisnim="$nimi::$date::
                    ";
                    fputs($tiednim, $lisnim);
                    fclose($tiednim);
                    }


                    i can register from computer but not from mobile please help me on that


                    parse error!!

                    its showing this

                    PLZ GUYS HELP ME AS SOON AS POSSBILE

                    Comment


                      #11
                      If you are talking about the old lavalair script, inbox me, i&#39;ve got all the mods and addons for it and i&#39;ll help where i can

                      But i dont do anything for free anymore, so i would want some usefull script in return.

                      SpiderWap

                      Click here!!!

                      Comment


                        #12
                        brother its not old lavair script the script is by ghost and devience mobile chat

                        Comment


                          #13
                          Code:
                          echo "[size="1"]Username:[/size]
                          <input name=\"nimi\" type=\"text\" format=\"*x\" maxlength=\"10\" emptyok=\"true\"/>
                          ";
                          
                          sign ups
                          
                          $limit_size=10;
                          $nimi = $_GET["nimi"];
                          $nimi = $_POST["nimi"];
                          if($nimi >= $limit_size){
                          echo "
                          
                          <p align=\"center\">";
                          echo "Your file size is over limit
                          ";
                          echo "
                          Username limit is 10 so go back and try again if not good bye";
                          echo "</p>";
                          exit();
                          }
                          try that if not i will find away to do it or ask chris aka chatabox thats his script that posted here
                          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                          Visit: WapMasterz Coming Back Soon!
                          _______
                          SCRIPTS FOR SALE BY SUBZERO
                          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                          _______
                          Info & Tips
                          php.net
                          w3schools.com

                          Comment


                            #14
                            brother ,

                            where should i put this line -

                            sign ups

                            $limit_size=10;
                            $nimi = $_GET["nimi"];
                            $nimi = $_POST["nimi"];
                            if($nimi >= $limit_size){
                            echo "

                            <p align=\"center\">";
                            echo "Your file size is over limit
                            ";
                            echo "
                            Username limit is 10 so go back and try again if not good bye";
                            echo "</p>";
                            exit();
                            }

                            in lounti2.php or lounti.php

                            Comment


                              #15
                              when someone sign up try that
                              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                              Visit: WapMasterz Coming Back Soon!
                              _______
                              SCRIPTS FOR SALE BY SUBZERO
                              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                              _______
                              Info & Tips
                              php.net
                              w3schools.com

                              Comment

                              Working...
                              X