Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 5, 2006, 2:25 pm
rate this thread
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?
Re: PHP handling data
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!