Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    362

    Unanswered: redirect and post a value

    I want to know if is there a way when I redirect form a one php file to another php to pass a "Post" value from the one to the other.
    Dimis

  2. #2
    Join Date
    Mar 2007
    Location
    010101010110100
    Posts
    803
    No, you cannot carry a POST value from one page to another page. If you include() the second php file in the first file, then yes, you can pass the value. Failing that, you'll need to use sessions.

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    if you include the variables you want to pass between scripts in the same manner as if they came from a web call then you can. whether GET or POST is the appropriate form I dunno
    I'd rather be riding on the Tiger 800 or the Norton

  4. #4
    Join Date
    Mar 2007
    Location
    010101010110100
    Posts
    803
    Hey Healdem, your right, he can pass the vars also using the GET method. I haven't used GET in a while and prefer sessions so it slipped my mind to even mention it. Thanks for the reminder.

Posting Permissions

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