Passing Variables between frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chimambo@googlemail.com

    #1

    Passing Variables between frames

    Hi All,

    I am trying to pass variables between two frames in PHP. I want to get
    a variable from F1 to F2 and the variable that is now in F2 should
    pass back the variable to F1 and call another page.

    Anyone to help? Thanks

    X
  • Captain Paralytic

    #2
    Re: Passing Variables between frames

    On 21 Dec, 11:34, chima...@google mail.com wrote:
    Hi All,
    >
    I am trying to pass variables between two frames in PHP. I want to get
    a variable from F1 to F2 and the variable that is now in F2 should
    pass back the variable to F1 and call another page.
    >
    Anyone to help? Thanks
    >
    X
    php does not have frames

    Comment

    • C. (http://symcbean.blogspot.com/)

      #3
      Re: Passing Variables between frames

      On 21 Dec, 11:34, chima...@google mail.com wrote:
      Hi All,
      >
      I am trying to pass variables between two frames in PHP. I want to get
      a variable from F1 to F2 and the variable that is now in F2 should
      pass back the variable to F1 and call another page.
      >
      Anyone to help? Thanks
      >
      X
      You can send stuff at the time you create the frame by setting GET
      parameters. If you want to send data into an existing frame you'll
      need to call javascript in the master window.

      C.

      Comment

      • puzz

        #4
        Re: Passing Variables between frames

        chimambo@google mail.com wrote:
        Hi All,
        >
        I am trying to pass variables between two frames in PHP. I want to get
        a variable from F1 to F2 and the variable that is now in F2 should
        pass back the variable to F1 and call another page.
        >
        Anyone to help? Thanks
        PHP don't know about frames, it treat them as two different request.

        You should use session variables...

        --
        www.panoye.com :: virtual tour

        Comment

        • Betikci Boris

          #5
          Re: Passing Variables between frames

          On Dec 21, 1:34 pm, chima...@google mail.com wrote:
          Hi All,
          >
          I am trying to pass variables between two frames in PHP. I want to get
          a variable from F1 to F2 and the variable that is now in F2 should
          pass back the variable to F1 and call another page.
          >
          Anyone to help? Thanks
          >
          X
          Hi, write the values into a text or dat file and second page read them
          in that file or use sql database indeed. Ok?

          Comment

          • chimambo@googlemail.com

            #6
            Re: Passing Variables between frames

            On 21 Dec, 17:50, Betikci Boris <pard...@gmail. comwrote:
            On Dec 21, 1:34 pm, chima...@google mail.com wrote:
            >
            Hi All,
            >
            I am trying to passvariablesbe tweentwoframesi n PHP. I want to get
            a variable from F1 to F2 and the variable that is now in F2 should
            pass back the variable to F1 and call another page.
            >
            Anyone to help? Thanks
            >
            X
            >
            Hi, write the values into a text or dat file and second page read them
            in that file or use sql database indeed. Ok?
            Hi, how do I write the variables to a txt/dat file? And please note
            that these are variables.

            Comment

            • My Pet Programmer

              #7
              Re: Passing Variables between frames

              chimambo@google mail.com said:
              On 21 Dec, 17:50, Betikci Boris <pard...@gmail. comwrote:
              >On Dec 21, 1:34 pm, chima...@google mail.com wrote:
              >>
              >>Hi All,
              >>I am trying to passvariablesbe tweentwoframesi n PHP. I want to get
              >>a variable from F1 to F2 and the variable that is now in F2 should
              >>pass back the variable to F1 and call another page.
              >>Anyone to help? Thanks
              >>X
              >Hi, write the values into a text or dat file and second page read them
              >in that file or use sql database indeed. Ok?
              >
              Hi, how do I write the variables to a txt/dat file? And please note
              that these are variables.
              What does that mean? You don't want the values, just the variable names?

              ~A!

              --
              Anthony Levensalor
              anthony@mypetpr ogrammer.com

              Comment

              • Betikci Boris

                #8
                Re: Passing Variables between frames

                On Dec 27, 12:51 pm, chima...@google mail.com wrote:
                On 21 Dec, 17:50, Betikci Boris <pard...@gmail. comwrote:
                >
                On Dec 21, 1:34 pm, chima...@google mail.com wrote:
                >
                Hi All,
                >
                I am trying to passvariablesbe tweentwoframesi n PHP. I want to get
                a variable from F1 to F2 and the variable that is now in F2 should
                pass back the variable to F1 and call another page.
                >
                Anyone to help? Thanks
                >
                X
                >
                Hi, write the values into a text or dat file and second page read them
                in that file or use sql database indeed. Ok?
                >
                Hi, how do I write the variables to a txt/dat file? And please note
                that these are variables.
                i meant values of the variables of course!..

                Passing values with hidden filed in a form can be easily read.

                You should pass the values with plain file or database will be much
                more safe.

                You can also do this with session variables..

                Comment

                • Jerry Stuckle

                  #9
                  Re: Passing Variables between frames

                  Betikci Boris wrote:
                  On Dec 27, 12:51 pm, chima...@google mail.com wrote:
                  >On 21 Dec, 17:50, Betikci Boris <pard...@gmail. comwrote:
                  >>
                  >>On Dec 21, 1:34 pm, chima...@google mail.com wrote:
                  >>>Hi All,
                  >>>I am trying to passvariablesbe tweentwoframesi n PHP. I want to get
                  >>>a variable from F1 to F2 and the variable that is now in F2 should
                  >>>pass back the variable to F1 and call another page.
                  >>>Anyone to help? Thanks
                  >>>X
                  >>Hi, write the values into a text or dat file and second page read them
                  >>in that file or use sql database indeed. Ok?
                  >Hi, how do I write the variables to a txt/dat file? And please note
                  >that these are variables.
                  >
                  i meant values of the variables of course!..
                  >
                  Passing values with hidden filed in a form can be easily read.
                  >
                  You should pass the values with plain file or database will be much
                  more safe.
                  >
                  You can also do this with session variables..
                  >
                  Writing the values to a file is just extra overhead and can cause lots
                  of problems - like not cleaning up old files. Similar problems can
                  occur with a database. Then you must pass a file name in a cookie,
                  session or hidden variable. I would NEVER recommend such actions -
                  that's what sessions are for.

                  If the information is private, use sessions - that's what they're there
                  for. But if it's something which has been entered on a previous form,
                  hidden fields should not be a problem.

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

                  Comment

                  Working...