PHP Variable Question

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

    PHP Variable Question


    Hi,

    I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.

    Data is entered on FORM1 & FORM2, and will be displayed on FORM3.

    Getting the data from FORM2 to FORM3 is not a problem, as the for data
    is passed automatically via the POST method. But, how do I get the
    variables from FORM1 to be passed 'through' FORM2 to be displayed on
    FORM3? I do not want to use hidden fields in the HTML.....how else
    can I do this?

    Any help would be appreciated.

    Thanks a lot!

    John
  • Paul Lautman

    #2
    Re: PHP Variable Question

    Mtek wrote:
    Hi,
    >
    I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.
    >
    Data is entered on FORM1 & FORM2, and will be displayed on FORM3.
    >
    Getting the data from FORM2 to FORM3 is not a problem, as the for data
    is passed automatically via the POST method. But, how do I get the
    variables from FORM1 to be passed 'through' FORM2 to be displayed on
    FORM3? I do not want to use hidden fields in the HTML.....how else
    can I do this?
    >
    Any help would be appreciated.
    >
    Thanks a lot!
    >
    John
    Sessions


    Comment

    • Mr.Reku

      #3
      Re: PHP Variable Question

      You must to use Php Sessions.
      All data will stored on $_SESSION['namesession'] , called Superglobal
      variables.
      For more infos:


      Have a nice day.


      On 2008-04-26 12:29:26 +0200, "Paul Lautman"
      <paul.lautman@b tinternet.comsa id:
      Mtek wrote:
      >Hi,
      >>
      >I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.
      >>
      >Data is entered on FORM1 & FORM2, and will be displayed on FORM3.
      >>
      >Getting the data from FORM2 to FORM3 is not a problem, as the for data
      >is passed automatically via the POST method. But, how do I get the
      >variables from FORM1 to be passed 'through' FORM2 to be displayed on
      >FORM3? I do not want to use hidden fields in the HTML.....how else
      >can I do this?
      >>
      >Any help would be appreciated.
      >>
      >Thanks a lot!
      >>
      >John
      >
      Sessions

      --
      ::: Mr. Reku :::
      ~ Help me to improve my English, Thanks. ~

      Comment

      • Paul Lautman

        #4
        Re: PHP Variable Question

        On 2008-04-26 12:29:26 +0200, "Paul Lautman"
        <paul.lautman@b tinternet.comsa id:
        >
        >Mtek wrote:
        >>Hi,
        >>>
        >>I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.
        >>>
        >>Data is entered on FORM1 & FORM2, and will be displayed on FORM3.
        >>>
        >>Getting the data from FORM2 to FORM3 is not a problem, as the for
        >>data is passed automatically via the POST method. But, how do I
        >>get the variables from FORM1 to be passed 'through' FORM2 to be
        >>displayed on FORM3? I do not want to use hidden fields in the
        >>HTML.....ho w else can I do this?
        >>>
        >>Any help would be appreciated.
        >>>
        >>Thanks a lot!
        >>>
        >>John
        >>
        >Sessions
        >
        >
        >::: Mr. Reku :::
        ~ Help me to improve my English, Thanks. ~
        Mr.Reku wrote:
        You must to use Php Sessions.
        All data will stored on $_SESSION['namesession'] , called Superglobal
        variables.
        For more infos:

        >
        Have a nice day.
        >
        >
        Please don't top post (top posting fixed)

        Also, I did not ask this question, so why are you responding to me?




        Comment

        • Mr. Reku

          #5
          Re: PHP Variable Question

          On 2008-04-26 18:56:05 +0200, "Paul Lautman"
          <paul.lautman@b tinternet.comsa id:
          >
          Also, I did not ask this question, so why are you responding to me?
          Because it's the solution for your question ;)

          Have a nice day
          --
          ::: Mr. Reku :::
          ~ Help me to improve my English, Thanks. ~

          Comment

          • Mr. Reku

            #6
            Re: PHP Variable Question

            On 2008-04-26 18:56:05 +0200, "Paul Lautman"
            <paul.lautman@b tinternet.comsa id:
            Also, I did not ask this question, so why are you responding to me?
            Sorry,
            i've replied to you instead Mtek.

            --
            ::: Mr. Reku :::
            ~ Help me to improve my English, Thanks. ~

            Comment

            Working...