September 18th, 2000, 07: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 ?
Thanks
-
J0f
September 19th, 2000, 01: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:
step1;
step2;
step3;
step4: include("html/outputfile.php");
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, 04:05 AM
-
K...
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...
Thanx
-
J0f
PS: I'm a webdevelopper and a webdesigner