|
Posted by Michael Fesser on 11/16/51 12:00
..oO(David Dorward)
>dittonamed wrote:
>
>> <?php
>> # processing php, ajax requests, POSTS, GETS, etc
>> ?>
>
>It seems odd to do this part way through the document.
ACK
>Especially so for
>responses to Ajax requests (which usually won't be HTML documents).
It may also cause problems if the processing of form data should require
a following redirect, which happens quite regularly in my own scripts to
avoid a repost of the form data just by reloading the page in the
browser. Every processing should be done before the first line of
output, not somewhere in the middle of it.
Micha
Navigation:
[Reply to this message]
|