PHP handling data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • usman.cs@gmail.com

    #1

    PHP handling data

    Consider the structure
    C:\firstFile.ph p
    C:\add\secondFi le.inc.php

    A user comes and postes some data to firstFile.php . Then the file does
    a whole bunch of processing on the posted data. Now what should I do if
    secondFile.inc. php wants the same posted data.

    Is there anyway to make the posted data available to all the subfiles?

    Thanks,
    Usman

  • onedbguru@firstdbasource.com

    #2
    Re: PHP handling data

    is the second file another "submit" button on the first file? or
    continued processing.

    If continued processing check out the include statement (a great
    example is the sendmail.php scripts - download and review the
    structures - you will learn a lot!)

    If it is a submit button, there are various methods including, but not
    limited to cookies, sessions, flat files or database entries (store in
    db in first file retrieve in second) .

    see: http://us3.php.net/session

    Cookies are least reliable as people may have them disabled!

    Comment

    Working...