> Why? The "else" clause should not (and correctly was not) executed.
>
> If you had done:
> <% include("page1.html")
> include("page2.html") %>
> then you would have gotten a concatenation of both pages.
>
> It is not at all uncommon to use multiple includes on one page.
I wasn't sure if include is executed or if it's preprocessed and then the page
is executed. Since I want to include an html file as opposed to an a4d file,
whether it's executed or preprocessed would make a difference.
What I really want to do is something like this:
$isValid := $validate_form
if($isValid)
include("next_Form.html")
else
include("errorPage.html")
end if
My next question was going to be: do multiple includes cause a performance
issue. Sounds like that's not the case if the page isn't parsed unless the
include is executed.
Warmest regards,
Rick Hazey
bitworx, inc.
---------------------------
[EMAIL PROTECTED]
http://www.bitworx.com
---------------------------
11924 Sunray Ave. Suite B
Baton Rouge, LA 70816
(225) 293-1333 Voice
(225) 293-1330 FAX
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/