what does it mean fieldRequired.lenght in php 4.1 ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrey Koptyaev

    what does it mean fieldRequired.lenght in php 4.1 ?

    What does it mean "fieldRequired. lenght" in php 4.1 ?
    I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
    Please help to understand.
    Thank you!

  • Colin Fine

    #2
    Re: what does it mean fieldRequired.l enght in php 4.1 ?

    Andrey Koptyaev wrote:
    What does it mean "fieldRequired. lenght" in php 4.1 ?
    I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
    Please help to understand.
    Thank you!
    >
    '.' is the string concatenation operator, but neither 'fieldRequired'
    nor 'lenght' appear to be variables.

    Can you give us some context?

    Colin

    Comment

    • Jerry Stuckle

      #3
      Re: what does it mean fieldRequired.l enght in php 4.1 ?

      Andrey Koptyaev wrote:
      What does it mean "fieldRequired. lenght" in php 4.1 ?
      I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
      Please help to understand.
      Thank you!
      >
      Andrey,

      By itself this doesn't make much sense. Can you give us a reference
      where you saw it?

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Andrey Koptyaev

        #4
        Re: what does it mean fieldRequired.l enght in php 4.1 ?


        Colin Fine wrote:
        Andrey Koptyaev wrote:
        What does it mean "fieldRequired. lenght" in php 4.1 ?
        I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
        Please help to understand.
        Thank you!
        >
        '.' is the string concatenation operator, but neither 'fieldRequired'
        nor 'lenght' appear to be variables.
        >
        Can you give us some context?
        >
        Colin
        here:

        function formCheck(formo bj){
        // Enter name of mandatory fields
        var fieldRequired = Array("title", "category", "descriptio n",
        "regnow_id" , "vid");
        // Enter field description to appear in the dialog box
        var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
        "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
        "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
        // dialog message
        var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";

        var l_Msg = alertMsg.length ;

        for (var i = 0; i < fieldRequired.l ength; i++){
        var obj = formobj.element s[fieldRequired[i]];

        Comment

        • Kimmo Laine

          #5
          Re: what does it mean fieldRequired.l enght in php 4.1 ?

          "Andrey Koptyaev" <koptyaev@gmail .comwrote in message
          news:1162188640 .844891.280260@ e64g2000cwd.goo glegroups.com.. .
          >
          Colin Fine wrote:
          >Andrey Koptyaev wrote:
          What does it mean "fieldRequired. lenght" in php 4.1 ?
          I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
          Please help to understand.
          Thank you!
          >
          >>
          >'.' is the string concatenation operator, but neither 'fieldRequired'
          >nor 'lenght' appear to be variables.
          >>
          >Can you give us some context?
          >>
          >Colin
          >
          here:
          >
          function formCheck(formo bj){
          // Enter name of mandatory fields
          var fieldRequired = Array("title", "category", "descriptio n",
          "regnow_id" , "vid");
          // Enter field description to appear in the dialog box
          var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
          "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
          "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
          // dialog message
          var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";
          >
          var l_Msg = alertMsg.length ;
          >
          for (var i = 0; i < fieldRequired.l ength; i++){
          var obj = formobj.element s[fieldRequired[i]];
          >
          That's javascript mixed with some php. In your example code everything
          between the <? ?tags is php, anything outside them is javascript. In this
          case fieldRequired.l ength is a javascript command. To be precide, it refers
          to a string object 'fieldRequired' and it's class member 'length'.

          Ask in a javascript group.


          --
          "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
          http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
          spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)


          Comment

          • Pedro Graca

            #6
            Re: what does it mean fieldRequired.l enght in php 4.1 ?

            Andrey Koptyaev wrote:
            here:
            >
            function formCheck(formo bj){
            // Enter name of mandatory fields
            var fieldRequired = Array("title", "category", "descriptio n",
            "regnow_id" , "vid");
            // Enter field description to appear in the dialog box
            No PHP so far
            var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
            "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
            "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
            // dialog message
            var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";
            Only stuff between <? and ?(6 things) is, probably (*), PHP.
            All the rest isn't; and also there is no more PHP below.
            var l_Msg = alertMsg.length ;
            >
            for (var i = 0; i < fieldRequired.l ength; i++){
            var obj = formobj.element s[fieldRequired[i]];
            I suggest you ask in a newsgroup that deals with this language, whatever
            it is :)


            (*) It is PHP if your server is configured with short_open_tags .
            Rather than rely on a specific server configuration, it's best to code
            that as

            <?php echo $variable; ?>

            which will work on every server with PHP installed (and configured to
            'run' on files with the extension this snippet is in).

            --
            I (almost) never check the dodgeit address.
            If you *really* need to mail me, use the address in the Reply-To
            header with a message in *plain* *text* *without* *attachments*.

            Comment

            • Andrey Koptyaev

              #7
              Re: what does it mean fieldRequired.l enght in php 4.1 ?


              Kimmo Laine wrote:
              "Andrey Koptyaev" <koptyaev@gmail .comwrote in message
              news:1162188640 .844891.280260@ e64g2000cwd.goo glegroups.com.. .

              Colin Fine wrote:
              Andrey Koptyaev wrote:
              What does it mean "fieldRequired. lenght" in php 4.1 ?
              I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
              Please help to understand.
              Thank you!

              >
              '.' is the string concatenation operator, but neither 'fieldRequired'
              nor 'lenght' appear to be variables.
              >
              Can you give us some context?
              >
              Colin
              here:

              function formCheck(formo bj){
              // Enter name of mandatory fields
              var fieldRequired = Array("title", "category", "descriptio n",
              "regnow_id" , "vid");
              // Enter field description to appear in the dialog box
              var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
              "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
              "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
              // dialog message
              var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";

              var l_Msg = alertMsg.length ;

              for (var i = 0; i < fieldRequired.l ength; i++){
              var obj = formobj.element s[fieldRequired[i]];
              >
              That's javascript mixed with some php. In your example code everything
              between the <? ?tags is php, anything outside them is javascript. In this
              case fieldRequired.l ength is a javascript command. To be precide, it refers
              to a string object 'fieldRequired' and it's class member 'length'.
              >
              Ask in a javascript group.
              ok
              thank you
              I am going to teach some java :-)

              Comment

              • Andrey Koptyaev

                #8
                Re: what does it mean fieldRequired.l enght in php 4.1 ?


                Pedro Graca wrote:
                Andrey Koptyaev wrote:
                here:

                function formCheck(formo bj){
                // Enter name of mandatory fields
                var fieldRequired = Array("title", "category", "descriptio n",
                "regnow_id" , "vid");
                // Enter field description to appear in the dialog box
                >
                No PHP so far
                >
                var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
                "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
                "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
                // dialog message
                var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";
                >
                Only stuff between <? and ?(6 things) is, probably (*), PHP.
                All the rest isn't; and also there is no more PHP below.
                >
                var l_Msg = alertMsg.length ;

                for (var i = 0; i < fieldRequired.l ength; i++){
                var obj = formobj.element s[fieldRequired[i]];
                >
                I suggest you ask in a newsgroup that deals with this language, whatever
                it is :)
                >
                >
                (*) It is PHP if your server is configured with short_open_tags .
                Rather than rely on a specific server configuration, it's best to code
                that as
                >
                <?php echo $variable; ?>
                >
                which will work on every server with PHP installed (and configured to
                'run' on files with the extension this snippet is in).
                ok
                thank you
                I understand - this is javascript with little bit php

                Comment

                • Kimmo Laine

                  #9
                  Re: what does it mean fieldRequired.l enght in php 4.1 ?

                  "Andrey Koptyaev" <koptyaev@gmail .comwrote in message
                  news:1162229558 .834099.36470@b 28g2000cwb.goog legroups.com...
                  >
                  Kimmo Laine wrote:
                  >"Andrey Koptyaev" <koptyaev@gmail .comwrote in message
                  >news:116218864 0.844891.280260 @e64g2000cwd.go oglegroups.com. ..
                  >
                  Colin Fine wrote:
                  >Andrey Koptyaev wrote:
                  What does it mean "fieldRequired. lenght" in php 4.1 ?
                  I know "fieldRequi red->lenght" but don't know "fieldRequired. lenght"
                  Please help to understand.
                  Thank you!
                  >
                  >>
                  >'.' is the string concatenation operator, but neither 'fieldRequired'
                  >nor 'lenght' appear to be variables.
                  >>
                  >Can you give us some context?
                  >>
                  >Colin
                  >
                  here:
                  >
                  function formCheck(formo bj){
                  // Enter name of mandatory fields
                  var fieldRequired = Array("title", "category", "descriptio n",
                  "regnow_id" , "vid");
                  // Enter field description to appear in the dialog box
                  var fieldDescriptio n = Array("<?=$GLOB ALS['_TITLE']?>",
                  "<?=$GLOBAL S['_DESC']?>", "<?=$GLOBAL S['_CATEG']?>",
                  "<?=$GLOBAL S['_RNID']?>", "<?=$GLOBAL S['_VENDOR']?>");
                  // dialog message
                  var alertMsg = "<?=$GLOBAL S['_ERR11']?>\n";
                  >
                  var l_Msg = alertMsg.length ;
                  >
                  for (var i = 0; i < fieldRequired.l ength; i++){
                  var obj = formobj.element s[fieldRequired[i]];
                  >
                  >>
                  >That's javascript mixed with some php. In your example code everything
                  >between the <? ?tags is php, anything outside them is javascript. In
                  >this
                  >case fieldRequired.l ength is a javascript command. To be precide, it
                  >refers
                  >to a string object 'fieldRequired' and it's class member 'length'.
                  >>
                  >Ask in a javascript group.
                  >
                  ok
                  thank you
                  I am going to teach some java :-)
                  >
                  First of all it's JavaScript, not Java, those two are very much different
                  languages, and secondly I do wish you first LEARN some javascript before you
                  start TEACHING it... ;)


                  --
                  "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
                  http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
                  spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)


                  Comment

                  • Andrey Koptyaev

                    #10
                    Re: what does it mean fieldRequired.l enght in php 4.1 ?

                    ok
                    thank you
                    I am going to teach some java :-)
                    >
                    First of all it's JavaScript, not Java, those two are very much different
                    languages, and secondly I do wish you first LEARN some javascript before you
                    start TEACHING it... ;)
                    yes, I understand you
                    my english very bad
                    then I going to learn some javascript and late I'll think about
                    teaching :-)

                    Comment

                    Working...