PHP handling data

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Consider the structure

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 wants the same posted data.

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


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) .


Cookies are least reliable as people may have them disabled!

Site Timeline