Hi,
> <TABLE >
> <TR >
> <TD>
> <!-- Page Contents Goes Here -->
> <H2>
> Student: alter details
> </H2>
> *--------------------------------------------------------------*/
> $sock = ConnectDatabase("BestNet");
> /*--------------------------------------------------------------*/
> $staff_ID = ValidateStatus ($sock, $user_ID, $password);
> if($staff_ID == "")
> {
> echo("Use the browser's back button to return to the authentication page.
> \n");
> exit(1);
> }
>
> .................... a whole lot of mixed lite and HTML goes
> here...............
>
>
> <!-- End of Page Contents -->
> </TD>
> </TR>
> </TABLE>
> Firstly echo("Use the browser's back button to return to the authentication
> page. \n"); does not produce a result in the web page.
> I want this message to appear.
You'll see it if you look at the html-code in your browser. The message
is generated within a <TABLE> environment, that is not closed by a </TABLE>
tag (Because you call exit before). So the browser doesn't show the table at
all.
> Secondly all of the lite code and HTML after the if block and up to but not
> including the </TD> tag is ignored.
> But all of the HTML including the </TD>
> tag and after is rendered correctly. This is the result I want. However it
> implies that exit is a lot smarter than I had hoped. I was expecting exit()
> to just to stop the Lite interpreter processing the page altogether.
I think this can't be. exit() immediately stops execution of the whole page.
Take a look at the html-code to see what is actuallay generated, and maybe put
a echo("$staff_ID") into the script to see if exit is really called.
Bye,
Georg
-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/
This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:03:52 EST