Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Glacier, WA

    Sending data to forms via php

    I have a script that sends data from 1 form via post to a second for verifacation, if correct I need to send the text file name that was created to my 3rd script for mailing, the file name is randomy created for example "67220060324110628PST.txt" How can I pass this informatipon the the 3rd php script?


  2. #2
    you couldd put this in in 2 ways, either with a form, using a hidden input:

    <input type="hidden" name="filename" value="$filename">

    where $filename is previously calculated to be (as per your example): 67220060324110628PST.txt

    Then use the $_POST['filename'] variable to access this..

    Otherwise, you could use the GET method, such as linking to:


    and use $_GET['filename'] to get this
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts