Benjamin Hawkes-Lewis wrote:
Edward Diener wrote:
Does not the script 'exit' when the PHP code reaches the ending
'?>' tag ?
Not exactly. PHP processes the remainder of the file too, it just
doesn't find any PHP code to execute therein. It does find some text to
output, and it outputs it. That text happens to be a form.
Now I see. Just like in normal HTML processing a request to a URL which
is an HTML page, sends the HTML markup back to the client. My PHP page
is a normal HTML page with PHP processing embedded in it. Hit me on the
head and wake me up <g>.
How does one stop PHP from outputting data in a PHP file outside of the
PHP tags ? Hopefully there is a technique for that. can I just 'exit' in
the PHP processing code in order to do that ? It seems that should work
and I will try it.
In my case I am using the form data just to process the request and not
to be sent back to the client, especially as a form itself is not a
complete HTML page.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php