September 18th, 2000, 08:53 PM
suppose in the middle of a page I realize the current user has nothing to do here and I want to kick him out.
How can I relocate his page, since the "header" command requires that no output has been done before, and that is not my case ?
September 19th, 2000, 02:41 AM
>>suppose in the middle of a page I realize the current user
Why not check the user's authentication first?
every page I wrote were following the 4 steps:
1.check the authetication, if not, kick out
2.check the correctness of input, if not, kick out
3.do the process
4.output the result
I have at least two files for one page:
process file and output file
in process file, do:
in output file, there are HTML code and some necessary PHP code.
All output HTML code was moved to output file, and I can concentrate myself with process work, leave the output to webdesigner.
Like me, you r a webdeveloper.
September 19th, 2000, 05:05 AM
I suppose I did the wrong thing which was to put all my functions in a header that already displays stuff, which therefore prevents me from kicking out the bastard...
PS: I'm a webdevelopper and a webdesigner