Grabbing form values from an external page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dreea
    New Member
    • Aug 2007
    • 37

    Grabbing form values from an external page

    Hello all,
    I have a page that submits to another page
    Is there any way of retrieving the output produced by the second page in the first page?
    For instance if I have in the first page a form in which you fill in a name, submit it, to a second page that produces "Hello Tommy", i want to read from the first page what the second page outputed. I have no control over the second page. If there's any way to read its content from a third page the solution is wellcomed.
    Thanks in advance
  • tommurray
    New Member
    • May 2007
    • 40

    #2
    I'm not 100% certain what you mean, you can display information on the second page that you have entered on the first page.

    [PHP]

    $name = $_POST['name'];

    //then to display the name you will need to do:

    echo $name;

    [/PHP]

    Is this what you where asking for?

    Comment

    • Dreea
      New Member
      • Aug 2007
      • 37

      #3
      no
      I send some information to a page.... the page interpretes the informatin and outputs something ( i don't know what and how my data affects it) and i need to read what it outputs
      for instance in the first page i fill in Tommy. The second page can output "Hello Tommy" "Good morning Tommy" "yes" "no" ... can output anything... and i need to read what it outputs based on my input (in this case Tommy)
      Thanks

      Comment

      • tommurray
        New Member
        • May 2007
        • 40

        #4
        How about if you do somthing like on the second page

        [PHP]

        $hello = "Hello" $_POST['name'];

        [/PHP]

        Then redirect back to the first page then echo out the value?

        you will need to then build in an if statement against the time if you wish to have different response during the day

        Comment

        • Dreea
          New Member
          • Aug 2007
          • 37

          #5
          Well, I can not do anything in the second page for I wasn't the person who wrote the code, and is on onther server

          Comment

          • tommurray
            New Member
            • May 2007
            • 40

            #6
            Sorry but i don't think you will be able to do it as you will need somthing to capture your data on that page and then send it back.

            might be wrong though but can't see it.

            Comment

            • pbmods
              Recognized Expert Expert
              • Apr 2007
              • 5821

              #7
              Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

              Comment

              Working...