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

Re: [php-objects] pass key values problem? in href

Expand Messages
  • SIXS
    Hii, Thanks for your reply. I am not sure what is happening?. Is it using a php with echo for each item to be passed. I am having some syntax trouble with your
    Message 1 of 8 , Apr 1, 2007
    • 0 Attachment
      Hii,
      Thanks for your reply. I am not sure what is happening?. Is it using a php with echo for each item to be passed. I am having some syntax trouble with your example. Could you explain why you use two echos within echo ?
      Thanks for your help
      Jim
      ----- Original Message -----
      From: ~Tarun~
      To: php-objects@yahoogroups.com
      Sent: Saturday, March 31, 2007 10:45 PM
      Subject: Re: [php-objects] pass key values problem? in href


      you have to save the value in variable first and then use it in hyperlink..

      "<TD><a href=\"showcheat.php?ln=".$myrow[lastname]."&?id=".$myrow[id]."\">Cheatsheet</a>
      ";

      use this

      $a=$myrow['lastname'];
      $b=$myrow['id'];

      "<TD><a href=\"showcheat.php?ln=<?php echo $a; ?>&?id=<?php echo $b ;
      ?>">Cheatsheet</a> ";

      Regards
      Tarun

      On 31 Mar 2007 15:09:01 -0700, SIXS <sixs@...> wrote:
      >
      > Hi, I am using winXP and php mysql.
      > I am trying to pass a key value(id) and a name value to another php page.
      > I can pass the key value and use it in the next page for mysql select
      > successfully. If I add the code for the name I can get the key value and the
      > name value but the query is unsuccessful. I have changed the sequence of the
      > values and that doesn't work.
      > Any suggestions please????
      > code in question? begin with ?ln and ?id
      > echo "<TD><a href=\"showcheat.php?ln=".$myrow[lastname]."&?id=".$myrow[id]."\">Cheatsheet</a>
      > ";
      >
      > Thanks
      > JIM
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >

      [Non-text portions of this message have been removed]





      [Non-text portions of this message have been removed]
    • ~Tarun~
      hii Jim, as when i am making site i am closing the php and then opening it before next echo., so closing once and then opening again. all have different ways
      Message 2 of 8 , Apr 1, 2007
      • 0 Attachment
        hii Jim,

        as when i am making site i am closing the php and then opening it before next echo.,

        so closing once and then opening again.

        all have different ways to use language :) i prefer what i feel is easy


        so instead of using

        --------------------------------------------------------------------------------

        "<TD><a href=\"showcheat.php?ln=".$myrow[lastname]."&?id=".$myrow[id]."\">Cheatsheet</a>
        ";

        I used this

        $a=$myrow['lastname'];
        $b=$myrow['id'];

        "<TD><a href="showcheat.php?ln=<?php echo $a; ?>&?id=<?php echo $b ;
        ?>">Cheatsheet</a> ";

        --------------------------------------------------------------------------------


        i hope this doesnt create anykind of problem.

        Regards

        Tarun



        [Non-text portions of this message have been removed]
      • Brian Etheridge
        You should only have one question mark in the href definition. So the id parameter should be &id= and not &?id= . Apart from that it looks ok.
        Message 3 of 8 , Apr 2, 2007
        • 0 Attachment
          You should only have one question mark in the href definition. So the
          id parameter should be "&id=" and not "&?id=". Apart from that it looks
          ok.

          ________________________________

          From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]
          On Behalf Of ~Tarun~
          Sent: 02 April 2007 04:28
          To: php-objects@yahoogroups.com
          Subject: Re: [php-objects] pass key values problem? in href



          hii Jim,

          as when i am making site i am closing the php and then opening it before
          next echo.,

          so closing once and then opening again.

          all have different ways to use language :) i prefer what i feel is easy

          so instead of using

          ----------------------------------------------------------

          "<TD><a
          href=\"showcheat.php?ln=".$myrow[lastname]."&?id=".$myrow[id]."\">Cheats
          heet</a>
          ";

          I used this

          $a=$myrow['lastname'];
          $b=$myrow['id'];

          "<TD><a href="showcheat.php?ln=<?php echo $a; ?>&?id=<?php echo $b ;
          ?>">Cheatsheet</a> ";

          ----------------------------------------------------------

          i hope this doesnt create anykind of problem.

          Regards

          Tarun



          [Non-text portions of this message have been removed]






          [Non-text portions of this message have been removed]
        • SIXS
          Hi Thanks for the help. I am now able to get the values to the URL on the next page. I now can access the id value but can t access the ln value
          Message 4 of 8 , Apr 2, 2007
          • 0 Attachment
            Hi
            Thanks for the help.
            I am now able to get the values to the URL on the next page. I now can access the id value but can't access the ln value
            http://localhost/ep/usa/showcheat.php?id=1&?ln=Smiley
            $id=$_GET[id];
            $ln=$_POST[ln];
            echo $_RESULT[ln]
            Any suggestions?
            Jim

            ----- Original Message -----
            From: ~Tarun~
            To: php-objects@yahoogroups.com
            Sent: Sunday, April 01, 2007 9:27 PM
            Subject: Re: [php-objects] pass key values problem? in href


            hii Jim,

            as when i am making site i am closing the php and then opening it before next echo.,

            so closing once and then opening again.

            all have different ways to use language :) i prefer what i feel is easy

            so instead of using

            ----------------------------------------------------------

            "<TD><a href=\"showcheat.php?ln=".$myrow[lastname]."&?id=".$myrow[id]."\">Cheatsheet</a>
            ";

            I used this

            $a=$myrow['lastname'];
            $b=$myrow['id'];

            "<TD><a href="showcheat.php?ln=<?php echo $a; ?>&?id=<?php echo $b ;
            ?>">Cheatsheet</a> ";

            ----------------------------------------------------------

            i hope this doesnt create anykind of problem.

            Regards

            Tarun



            [Non-text portions of this message have been removed]





            [Non-text portions of this message have been removed]
          • addien_virtual@yahoo.com moslem
            http://localhost/ ep/usa/showcheat .php?id=1& ?ln=Smiley i don t understand why u put ? in front of ln variable have you try to erase that character so your
            Message 5 of 8 , Apr 2, 2007
            • 0 Attachment
              http://localhost/ ep/usa/showcheat .php?id=1& ?ln=Smiley

              i don't understand why u put ? in front of ln variable
              have you try to erase that character

              so your url would be like this
              http://localhost/ ep/usa/showcheat .php?id=1&ln=Smiley

              ----- Original Message ----
              From: SIXS <sixs@...>
              To: php-objects@yahoogroups.com
              Sent: Tuesday, April 3, 2007 11:39:28 AM
              Subject: Re: [php-objects] pass key values problem? in href













              Hi

              Thanks for the help.

              I am now able to get the values to the URL on the next page. I now can access the id value but can't access the ln value

              http://localhost/ ep/usa/showcheat .php?id=1& ?ln=Smiley

              $id=$_GET[id] ;

              $ln=$_POST[ln] ;

              echo $_RESULT[ln]

              Any suggestions?

              Jim



              ----- Original Message -----

              From: ~Tarun~

              To: php-objects@ yahoogroups. com

              Sent: Sunday, April 01, 2007 9:27 PM

              Subject: Re: [php-objects] pass key values problem? in href



              hii Jim,



              as when i am making site i am closing the php and then opening it before next echo.,



              so closing once and then opening again.



              all have different ways to use language :) i prefer what i feel is easy



              so instead of using



              ------------ --------- --------- --------- --------- --------- -



              "<TD><a href=\"showcheat. php?ln=". $myrow[lastname] ."&?id=". $myrow[id] ."\">Cheatsheet< /a>

              ";



              I used this



              $a=$myrow['lastname '];

              $b=$myrow['id' ];



              "<TD><a href="showcheat. php?ln=<? php echo $a; ?>&?id=<?php echo $b ;

              ?>">Cheatsheet< /a> ";



              ------------ --------- --------- --------- --------- --------- -



              i hope this doesnt create anykind of problem.



              Regards



              Tarun



              [Non-text portions of this message have been removed]



              [Non-text portions of this message have been removed]














              <!--

              #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
              #ygrp-mlmsg table {font-size:inherit;font:100%;}
              #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
              #ygrp-mlmsg pre, code {font:115% monospace;}
              #ygrp-mlmsg * {line-height:1.22em;}
              #ygrp-text{
              font-family:Georgia;
              }
              #ygrp-text p{
              margin:0 0 1em 0;}
              #ygrp-tpmsgs{
              font-family:Arial;
              clear:both;}
              #ygrp-vitnav{
              padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
              #ygrp-vitnav a{
              padding:0 1px;}
              #ygrp-actbar{
              clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
              #ygrp-actbar .left{
              float:left;white-space:nowrap;}
              .bld{font-weight:bold;}
              #ygrp-grft{
              font-family:Verdana;font-size:77%;padding:15px 0;}
              #ygrp-ft{
              font-family:verdana;font-size:77%;border-top:1px solid #666;
              padding:5px 0;
              }
              #ygrp-mlmsg #logo{
              padding-bottom:10px;}

              #ygrp-vital{
              background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
              #ygrp-vital #vithd{
              font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
              #ygrp-vital ul{
              padding:0;margin:2px 0;}
              #ygrp-vital ul li{
              list-style-type:none;clear:both;border:1px solid #e0ecee;
              }
              #ygrp-vital ul li .ct{
              font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
              #ygrp-vital ul li .cat{
              font-weight:bold;}
              #ygrp-vital a {
              text-decoration:none;}

              #ygrp-vital a:hover{
              text-decoration:underline;}

              #ygrp-sponsor #hd{
              color:#999;font-size:77%;}
              #ygrp-sponsor #ov{
              padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
              #ygrp-sponsor #ov ul{
              padding:0 0 0 8px;margin:0;}
              #ygrp-sponsor #ov li{
              list-style-type:square;padding:6px 0;font-size:77%;}
              #ygrp-sponsor #ov li a{
              text-decoration:none;font-size:130%;}
              #ygrp-sponsor #nc {
              background-color:#eee;margin-bottom:20px;padding:0 8px;}
              #ygrp-sponsor .ad{
              padding:8px 0;}
              #ygrp-sponsor .ad #hd1{
              font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
              #ygrp-sponsor .ad a{
              text-decoration:none;}
              #ygrp-sponsor .ad a:hover{
              text-decoration:underline;}
              #ygrp-sponsor .ad p{
              margin:0;}
              o {font-size:0;}
              .MsoNormal {
              margin:0 0 0 0;}
              #ygrp-text tt{
              font-size:120%;}
              blockquote{margin:0 0 0 4px;}
              .replbq {margin:4;}
              -->









              ____________________________________________________________________________________
              Sucker-punch spam with award-winning protection.
              Try the free Yahoo! Mail Beta.
              http://advision.webevents.yahoo.com/mailbeta/features_spam.html

              [Non-text portions of this message have been removed]
            • SIXS
              Hi, Thanks to all who responded. The ? in front of ln seems to be the problem and deletion of it is the solution! JIm ... From: addien_virtual@yahoo.com
              Message 6 of 8 , Apr 3, 2007
              • 0 Attachment
                Hi,
                Thanks to all who responded. The ? in front of ln seems to be the problem and deletion of it is the solution!
                JIm

                ----- Original Message -----
                From: addien_virtual@... moslem
                To: php-objects@yahoogroups.com
                Sent: Tuesday, April 03, 2007 1:34 AM
                Subject: Re: [php-objects] pass key values problem? in href


                http://localhost/ ep/usa/showcheat .php?id=1& ?ln=Smiley

                i don't understand why u put ? in front of ln variable
                have you try to erase that character

                so your url would be like this
                http://localhost/ ep/usa/showcheat .php?id=1&ln=Smiley

                ----- Original Message ----
                From: SIXS <sixs@...>
                To: php-objects@yahoogroups.com
                Sent: Tuesday, April 3, 2007 11:39:28 AM
                Subject: Re: [php-objects] pass key values problem? in href

                Hi

                Thanks for the help.

                I am now able to get the values to the URL on the next page. I now can access the id value but can't access the ln value

                http://localhost/ ep/usa/showcheat .php?id=1& ?ln=Smiley

                $id=$_GET[id] ;

                $ln=$_POST[ln] ;

                echo $_RESULT[ln]

                Any suggestions?

                Jim

                ----- Original Message -----

                From: ~Tarun~

                To: php-objects@ yahoogroups. com

                Sent: Sunday, April 01, 2007 9:27 PM

                Subject: Re: [php-objects] pass key values problem? in href

                hii Jim,

                as when i am making site i am closing the php and then opening it before next echo.,

                so closing once and then opening again.

                all have different ways to use language :) i prefer what i feel is easy

                so instead of using

                ------------ --------- --------- --------- --------- --------- -

                "<TD><a href=\"showcheat. php?ln=". $myrow[lastname] ."&?id=". $myrow[id] ."\">Cheatsheet< /a>

                ";

                I used this

                $a=$myrow['lastname '];

                $b=$myrow['id' ];

                "<TD><a href="showcheat. php?ln=<? php echo $a; ?>&?id=<?php echo $b ;

                ?>">Cheatsheet< /a> ";

                ------------ --------- --------- --------- --------- --------- -

                i hope this doesnt create anykind of problem.

                Regards

                Tarun

                [Non-text portions of this message have been removed]

                [Non-text portions of this message have been removed]

                <!--

                #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
                #ygrp-mlmsg table {font-size:inherit;font:100%;}
                #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
                #ygrp-mlmsg pre, code {font:115% monospace;}
                #ygrp-mlmsg * {line-height:1.22em;}
                #ygrp-text{
                font-family:Georgia;
                }
                #ygrp-text p{
                margin:0 0 1em 0;}
                #ygrp-tpmsgs{
                font-family:Arial;
                clear:both;}
                #ygrp-vitnav{
                padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                #ygrp-vitnav a{
                padding:0 1px;}
                #ygrp-actbar{
                clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
                #ygrp-actbar .left{
                float:left;white-space:nowrap;}
                .bld{font-weight:bold;}
                #ygrp-grft{
                font-family:Verdana;font-size:77%;padding:15px 0;}
                #ygrp-ft{
                font-family:verdana;font-size:77%;border-top:1px solid #666;
                padding:5px 0;
                }
                #ygrp-mlmsg #logo{
                padding-bottom:10px;}

                #ygrp-vital{
                background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                #ygrp-vital #vithd{
                font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                #ygrp-vital ul{
                padding:0;margin:2px 0;}
                #ygrp-vital ul li{
                list-style-type:none;clear:both;border:1px solid #e0ecee;
                }
                #ygrp-vital ul li .ct{
                font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                #ygrp-vital ul li .cat{
                font-weight:bold;}
                #ygrp-vital a {
                text-decoration:none;}

                #ygrp-vital a:hover{
                text-decoration:underline;}

                #ygrp-sponsor #hd{
                color:#999;font-size:77%;}
                #ygrp-sponsor #ov{
                padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                #ygrp-sponsor #ov ul{
                padding:0 0 0 8px;margin:0;}
                #ygrp-sponsor #ov li{
                list-style-type:square;padding:6px 0;font-size:77%;}
                #ygrp-sponsor #ov li a{
                text-decoration:none;font-size:130%;}
                #ygrp-sponsor #nc {
                background-color:#eee;margin-bottom:20px;padding:0 8px;}
                #ygrp-sponsor .ad{
                padding:8px 0;}
                #ygrp-sponsor .ad #hd1{
                font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                #ygrp-sponsor .ad a{
                text-decoration:none;}
                #ygrp-sponsor .ad a:hover{
                text-decoration:underline;}
                #ygrp-sponsor .ad p{
                margin:0;}
                o {font-size:0;}
                .MsoNormal {
                margin:0 0 0 0;}
                #ygrp-text tt{
                font-size:120%;}
                blockquote{margin:0 0 0 4px;}
                .replbq {margin:4;}
                -->

                __________________________________________________________
                Sucker-punch spam with award-winning protection.
                Try the free Yahoo! Mail Beta.
                http://advision.webevents.yahoo.com/mailbeta/features_spam.html

                [Non-text portions of this message have been removed]





                [Non-text portions of this message have been removed]
              Your message has been successfully submitted and would be delivered to recipients shortly.