Search found 3 matches

by gordonwd
Mon Mar 09, 2009 8:30 am
Forum: PHP - Code
Topic: Close code blocks in PHP sections?
Replies: 2
Views: 219

Re: Close code blocks in PHP sections?

Thanks for clearing that up. I thought that the HTML would be processed regardless of the conditional, and not treated as part of the conditional block. From your example, that's not true, which actually makes it work more logically.
by gordonwd
Mon Mar 09, 2009 8:07 am
Forum: PHP - Code
Topic: Close code blocks in PHP sections?
Replies: 2
Views: 219

Close code blocks in PHP sections?

Within each section of PHP in a given page -- that is, between the <?php and ?> -- is it necessary to close all PHP control structures? In other words, can you have an if, foreach, etc. with an opening brace, end that PHP block with ?>, then further down the page start another <?php block and have t...
by gordonwd
Fri Mar 06, 2009 10:47 am
Forum: PHP - Theory and Design
Topic: How to show "activity indicator" while busy
Replies: 1
Views: 712

How to show "activity indicator" while busy

The user fills in a form on a page and submits it. My script processes the data, then redisplays the page with success or error messages, and the user can correct the data or fill in new data if it was successful. Pretty straightforward. However, the processing that I'm doing in PHP can take more th...