Making a form that records the data sent

Discussion in 'PHP' started by Andrju, Jun 25, 2006.

  1. #1
    On my page I have a form, something like:

    <form action="www.abc.com/xxx.php" method="POST">
    value 1:<input type="text" name="x" />
    value 2: <input type="text" name="y" />
    <input type="submit" />

    It sends data to another site [over which I have no control].

    My question is: what do I have to do to make the script send the data to that site AND write the data to a text file on my server?
     
    Andrju, Jun 25, 2006 IP
  2. Borghunter

    Borghunter Well-Known Member

    Messages:
    212
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #2
    You can post it to a page on your own site to write it to a text file and then also post it to the site with some help of javascript. There may be another way, but this is the only way I know.
     
    Borghunter, Jun 25, 2006 IP
  3. Andrju

    Andrju Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Could someone give an example of java script I could use in this situation?
     
    Andrju, Jun 25, 2006 IP
  4. Andrju

    Andrju Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OMG this forum suuuuuux so much. I found the answer myself.
    "Screw you guys! I'm going home..."
     
    Andrju, Jun 28, 2006 IP
  5. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #5
    You're kidding, right? If I had seen this, I would have answered you. And these forums are the best forums I've come across, lamer.
     
    shamess, Jun 28, 2006 IP