Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] retrieving form name through php without using hidden field

Expand Messages
  • Sabuj Kundu
    How is this: $token = md5(uniqid(rand(), true)); $_SESSION[ token ] = $token; Now use this token as form id or name. ........................ Sabuj Kumar Kundu
    Message 1 of 12 , Sep 7, 2008
    • 0 Attachment
      How is this:
      $token = md5(uniqid(rand(), true));
      $_SESSION['token'] = $token;
      Now use this token as form id or name.


      ........................
      Sabuj Kumar Kundu
      http:/blog.manchumahara.com
      http://forum.amaderprojukti.com
      http://mkabya.page.tl



      On Sun, Sep 7, 2008 at 10:36 AM, Shahadat Hossain <razonklnbd@...> wrote:

      i have a form

      <form name="mad" id="razon" .......... >
      .........
      </form>

      how do I get either the name or id from the form in php...?

      please note, i know its possible by putting an extra hidden variable into that form and track that form name. but i don't want to track this form name like this way. i want a straight forward solution. i.e. if there has any built-in variable to get the form name through php.

      another thing is noted, i just googling on this issue 2 hour but didn't get any solution may be my searching criteria was wrong. one thing is that, the form name is used for back end processing purpose only.

      hope you all understand my query properly

      razon


    • kalai selvi
      hi,     what is the use of Register globals?     thx.     hi, what is the use of Register globals? thx.
      Message 2 of 12 , Sep 7, 2008
      • 0 Attachment


        hi,
         
         
        what is the use of Register globals?
         
         
        thx.
         
         

      • kalai selvi
        HI,                  see this is the string i need the value of @yahoo.com this string
        Message 3 of 12 , Sep 7, 2008
        • 0 Attachment
          HI,
           
                    <?
          $str_val= "kalaikalki@... simple query" ;
          ?>
           
           
          see this is the string i need the value of "@... " this string only.how to take this string.can u plz send the answer for  my question.
           
           
          thx
           

        • Md. Shahadat Hossain Khan
          look kundu, i want a specific solution. i know there has several tricks to get the form name. if you know such kind of built-in variable or related unique
          Message 4 of 12 , Sep 7, 2008
          • 0 Attachment
            look kundu,
            i want a specific solution. i know there has several tricks to get the
            form name. if you know such kind of built-in variable or related
            unique solution please share. anyway, thanks for your effort.

            razon

            --- In phpexperts@yahoogroups.com, "Sabuj Kundu" <manchumahara@...> wrote:
            >
            > How is this:
            > $token = md5(uniqid(rand(), true));
            > $_SESSION['token'] = $token;
            > Now use this token as form id or name.
            >
            >
            > ........................
            > Sabuj Kumar Kundu
            > http:/blog.manchumahara.com
            > http://forum.amaderprojukti.com
            > http://mkabya.page.tl
            >
            >
            >
            > On Sun, Sep 7, 2008 at 10:36 AM, Shahadat Hossain <razonklnbd@...>wrote:
            >
            > > i have a form
            > >
            > > <form name="mad" id="razon" .......... >
            > > .........
            > > </form>
            > >
            > > how do I get either the name or id from the form in php...?
            > >
            > > please note, i know its possible by putting an extra hidden
            variable into
            > > that form and track that form name. but i don't want to track this
            form name
            > > like this way. i want a straight forward solution. i.e. if there
            has any
            > > built-in variable to get the form name through php.
            > >
            > > another thing is noted, i just googling on this issue 2 hour but
            didn't get
            > > any solution may be my searching criteria was wrong. one thing is
            that, the
            > > form name is used for back end processing purpose only.
            > >
            > > hope you all understand my query properly
            > >
            > > razon
            > >
            > >
            > >
            >
          • Tahir
            hi Salvi , http://www.php.net/register_globals Read the article i hope it helpful to you . Regards, Tahir Rasheed Ahmed Web Developer Karachi-Pakistan kalai
            Message 5 of 12 , Sep 7, 2008
            • 0 Attachment
              hi Salvi ,
               
               
              Read the article i hope it helpful to you .
               
              Regards,
              Tahir Rasheed Ahmed
              Web Developer
              Karachi-Pakistan

              kalai selvi <kalaikalki6484@...> wrote:


              hi,
               
               
              what is the use of Register globals?
               
               
              thx.
               
               


            • 9el
              register_globals is a setting in the php.ini configuration file. Its set to off by default for safety reasons. if its set to on... then the variables passed
              Message 6 of 12 , Sep 8, 2008
              • 0 Attachment
                register_globals is a setting in the php.ini configuration file.
                Its set to off by default for safety reasons.

                if its set to on... then the variables passed from one page to another
                without special notations.
                But thats great deal of risk in this method. Your script would will be
                prone to intrusion and it will be hard to identify where from specific
                inputs have been made.

                With Register_globals turned off. we now pass variables with $_GET,
                $_POST, $_ENV, $_SESSION, $_REQUEST, $_COOKIE, $_SERVER etc. So, we
                can also be sure of where the requests are coming from.

                Regards
                9el

                register globals.
                Posted by: "kalai selvi" kalaikalki6484@...
                Sun Sep 7, 2008 8:15 am (PDT)

                hi,


                what is the use of Register globals?


                thx.
              • Kristiono Setyadi
                Why didn t you consider using JavaScript anyway? It s more simple and avoid headache to retrieve your form s name or ID s... Kristiono Setyadi Web and .NET
                Message 7 of 12 , Sep 8, 2008
                • 0 Attachment
                  Why didn't you consider using JavaScript anyway? It's
                  more simple and avoid headache to retrieve your form's
                  name or ID's...

                   
                  Kristiono Setyadi

                  Web and .NET Programmer
                  CitraWeb Nusa Infomedia
                  http://www.citra.web.id

                  http://ksetyadi.blogs.friendster.com/


                  ----- Original Message ----
                  From: Md. Shahadat Hossain Khan <razonklnbd@...>
                  To: phpexperts@yahoogroups.com
                  Sent: Monday, September 8, 2008 9:05:07 AM
                  Subject: [phpXperts] Re: retrieving form name through php without using hidden field

                  look kundu,
                  i want a specific solution. i know there has several tricks to get the
                  form name. if you know such kind of built-in variable or related
                  unique solution please share. anyway, thanks for your effort.

                  razon

                  --- In phpexperts@yahoogro ups.com, "Sabuj Kundu" <manchumahara@ ...> wrote:
                  >
                  > How is this:
                  > $token = md5(uniqid(rand( ), true));
                  > $_SESSION['token' ] = $token;
                  > Now use this token as form id or name.
                  >
                  >
                  > ............ ......... ...
                  > Sabuj Kumar Kundu
                  > http:/blog.manchuma hara.com
                  > http://forum. amaderprojukti. com
                  > http://mkabya. page.tl
                  >
                  >
                  >
                  > On Sun, Sep 7, 2008 at 10:36 AM, Shahadat Hossain <razonklnbd@ ...>wrote:
                  >
                  > > i have a form
                  > >
                  > > <form name="mad" id="razon" .......... >
                  > > .........
                  > > </form>
                  > >
                  > > how do I get either the name or id from the form in php...?
                  > >
                  > > please note, i know its possible by putting an extra hidden
                  variable into
                  > > that form and track that form name. but i don't want to track this
                  form name
                  > > like this way. i want a straight forward solution. i.e. if there
                  has any
                  > > built-in variable to get the form name through php.
                  > >
                  > > another thing is noted, i just googling on this issue 2 hour but
                  didn't get
                  > > any solution may be my searching criteria was wrong. one thing is
                  that, the
                  > > form name is used for back end processing purpose only.
                  > >
                  > > hope you all understand my query properly
                  > >
                  > > razon
                  > >
                  > >
                  > >
                  >


                • Gautam Das
                  hi, you can use either this way $val= kalaikalki@yahoo.com ;echo strstr($val, @ ); or you can use preg_match() Regards Goutam To:
                  Message 8 of 12 , Sep 8, 2008
                  • 0 Attachment
                    hi,
                     
                    you can use either this way
                     
                    $val="kalaikalki@...";
                    echo strstr($val,"@");

                    or
                    you can use preg_match()
                     
                    Regards
                    Goutam





                    To: phpexperts@yahoogroups.com
                    From: kalaikalki6484@...
                    Date: Sun, 7 Sep 2008 08:49:45 -0700
                    Subject: [phpXperts] plz neeed help


                    HI,
                     
                              <?
                    $str_val= "kalaikalki@yahoo. com simple query" ;
                    ?>
                     
                     
                    see this is the string i need the value of "@... " this string only.how to take this string.can u plz send the answer for  my question.
                     
                     
                    thx
                     




                    Hottest news and in-depth analysis that goes beyond the headlines. Only on MSN News Check it out!
                  • shiplu
                    $m=array(); preg_match( |@([^ s]+) s| ,$str_val,$m); $result = @{$m[1]} ; HI, ... -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top
                    Message 9 of 12 , Sep 8, 2008
                    • 0 Attachment
                      $m=array();
                      preg_match("|@([^\s]+)\s|",$str_val,$m);
                      $result = "@{$m[1]}";

                      HI,
                       
                                <?
                      $str_val= "kalaikalki@... simple query" ;
                      ?>
                       
                       
                      see this is the string i need the value of "@yahoo.com " this string only.how to take this string.can u plz send the answer for  my question.
                       
                       
                      thx
                       

                      __._,_.


                      --
                      A K M Mokaddim
                      http://talk.cmyweb.net
                      http://twitter.com/shiplu
                      Stop Top Posting !!
                    • kalai selvi
                        thanks i got it     also help this .   diff b/w == and === in PHP   diff b/w foo() and @foo() in PHP plz send me . Reagrds, Kalaiselvi Ranganathan ...
                      Message 10 of 12 , Sep 8, 2008
                      • 0 Attachment

                         
                        thanks i got it
                         
                         
                        also help this .
                         
                        diff b/w == and === in PHP
                         
                        diff b/w foo() and @foo() in PHP
                        plz send me .

                        Reagrds,


                        Kalaiselvi Ranganathan

                        --- On Mon, 9/8/08, shiplu <shiplu.net@...> wrote:
                        From: shiplu <shiplu.net@...>
                        Subject: Re: [phpXperts] plz neeed help
                        To: phpexperts@yahoogroups.com
                        Date: Monday, September 8, 2008, 3:17 PM

                        $m=array();
                        preg_match("|@([^\s]+)\s|",$str_val,$m) ;
                        $result = "@{$m[1]}";

                        HI,
                         
                                  <?
                        $str_val= "kalaikalki@yahoo. com simple query" ;
                        ?>
                         
                         
                        see this is the string i need the value of "@yahoo.com " this string only.how to take this string.can u plz send the answer for  my question.
                         
                         
                        thx
                         

                        __._,_.


                        --
                        A K M Mokaddim
                        http://talk. cmyweb.net
                        http://twitter. com/shiplu
                        Stop Top Posting !!

                      • Kristiono Setyadi
                        == is equal, but not identical; but === is equal and identical (in type). foo() return the function and report the error(s), if any; but @foo() didn t launch
                        Message 11 of 12 , Sep 8, 2008
                        • 0 Attachment
                          == is equal, but not identical;
                          but === is equal and identical (in type).

                          foo() return the function and report the error(s), if any;
                          but @foo() didn't launch the error(s) if they are exists.

                           
                          Kristiono Setyadi

                          Web and .NET Programmer
                          CitraWeb Nusa Infomedia
                          http://www.citra.web.id

                          http://ksetyadi.blogs.friendster.com/


                          ----- Original Message ----
                          From: kalai selvi <kalaikalki6484@...>
                          To: phpexperts@yahoogroups.com
                          Cc: shiplu.net@...
                          Sent: Monday, September 8, 2008 5:06:20 PM
                          Subject: Re: [phpXperts] plz neeed help


                           
                          thanks i got it
                           
                           
                          also help this .
                           
                          diff b/w == and === in PHP
                           
                          diff b/w foo() and @foo() in PHP
                          plz send me .

                          Reagrds,


                          Kalaiselvi Ranganathan

                          --- On Mon, 9/8/08, shiplu <shiplu.net@gmail. com> wrote:
                          From: shiplu <shiplu.net@gmail. com>
                          Subject: Re: [phpXperts] plz neeed help
                          To: phpexperts@yahoogro ups.com
                          Date: Monday, September 8, 2008, 3:17 PM

                          $m=array();
                          preg_match(" |@([^\s]+ )\s|",$str_ val,$m) ;
                          $result = "@{$m[1]}";

                          HI,
                           
                                    <?
                          $str_val= "kalaikalki@yahoo. com simple query" ;
                          ?>
                           
                           
                          see this is the string i need the value of "@yahoo.com " this string only.how to take this string.can u plz send the answer for  my question.
                           
                           
                          thx
                           

                          __._,_.


                          --
                          A K M Mokaddim
                          http://talk. cmyweb.net
                          http://twitter. com/shiplu
                          Stop Top Posting !!


                        Your message has been successfully submitted and would be delivered to recipients shortly.