a question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nader Emami

    #1

    a question

    I have a question. I want to use the emdeddin links within a PHP script.
    I give an example :
    $var = "string";

    and at some line of the current script:

    <a href="another.p hp?arg1=$var">l ink</a>

    Why doesn't work this construction? But if I give some value or string
    then we can get the
    value of $arg1 in the "another.ph p" script. Could somebody tell me how
    Can I solve this problem?

    With Regards,

    Nader


  • stephan beal

    #2
    Re: a question

    RG wrote:[color=blue]
    > <a href="another.p hp?arg1=<?php echo $var; ?>">link</a>[/color]

    There's also a short form:
    blah blah blah <?=$var?> blah blah blah

    --
    ----- stephan beal
    Registered Linux User #71917 http://counter.li.org
    I speak for myself, not my employer. Contents may
    be hot. Slippery when wet. Reading disclaimers makes
    you go blind. Writing them is worse. You have been Warned.

    Comment

    • Ian.H [dS]

      #3
      Re: a question

      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Whilst lounging around on Thu, 24 Jul 2003 18:00:34 +0200, stephan
      beal <stephan@wander inghorse.net> amazingly managed to produce the
      following with their Etch-A-Sketch:
      [color=blue]
      > RG wrote:[color=green]
      > > <a href="another.p hp?arg1=<?php echo $var; ?>">link</a>[/color]
      >
      > There's also a short form:
      > blah blah blah <?=$var?> blah blah blah[/color]


      That's never recommended to use as this will squash your portability
      somewhat!!



      Regards,

      Ian

      -----BEGIN PGP SIGNATURE-----
      Version: PGP 8.0

      iQA/AwUBPyAQUWfqtj2 51CDhEQL3YQCeIp +xgazFyPRw6uFcz +JIsxEQMngAn2UF
      PC41Pw9fzL+dpFW LPqHGWZRd
      =EqZk
      -----END PGP SIGNATURE-----

      --
      Ian.H [Design & Development]
      digiServ Network - Web solutions
      www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
      Programming, Web design, development & hosting.

      Comment

      • stephan beal

        #4
        Re: a question

        Ian.H [dS] wrote:[color=blue]
        > That's never recommended to use as this will squash your portability
        > somewhat!![/color]

        Just out of curiosity: are there versions after 4.0.x which don't support
        this? (i don't consider 3.x to be PHP - it's been obsolete for well over 3
        years.)

        --
        ----- stephan beal
        Registered Linux User #71917 http://counter.li.org
        I speak for myself, not my employer. Contents may
        be hot. Slippery when wet. Reading disclaimers makes
        you go blind. Writing them is worse. You have been Warned.

        Comment

        • Ian.H [dS]

          #5
          Re: a question

          -----BEGIN PGP SIGNED MESSAGE-----
          Hash: SHA1

          Whilst lounging around on Thu, 24 Jul 2003 19:04:25 +0200, stephan
          beal <stephan@wander inghorse.net> amazingly managed to produce the
          following with their Etch-A-Sketch:
          [color=blue]
          > Ian.H [dS] wrote:[color=green]
          > > That's never recommended to use as this will squash your
          > > portability somewhat!![/color]
          >
          > Just out of curiosity: are there versions after 4.0.x which don't
          > support this? (i don't consider 3.x to be PHP - it's been obsolete
          > for well over 3 years.)[/color]


          Your code would fail on my PHP4.3.1 install on this box, it has
          _nothing_ to do with the version of PHP.



          Regards,

          Ian

          -----BEGIN PGP SIGNATURE-----
          Version: PGP 8.0

          iQA/AwUBPyATVWfqtj2 51CDhEQIYZACg50 dmApy696Mo2ZMp6 l5RR5olEAQAnRnG
          XFZ9CrpVhol9pmX CS5S8VzA7
          =YC2k
          -----END PGP SIGNATURE-----

          --
          Ian.H [Design & Development]
          digiServ Network - Web solutions
          www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
          Programming, Web design, development & hosting.

          Comment

          Working...