470,848 Members | 1,587 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

PHP handling data

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

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


Apr 5 '06 #1
1 1171
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!

Apr 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Hans-Joachim Widmaier | last post: by
28 posts views Thread by Frank Puck | last post: by
4 posts views Thread by aaj | last post: by
1 post views Thread by michaeltorus | last post: by
17 posts views Thread by frederic.pica | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.