Need better Conditional for php include file

PHP project, Apache server, mysql database

My index page is the login page. Username & password.

  1. LoginCheck API – compare posted username & password to table.users records – find matching record or no find & pass “unauthorized/not logged in” back to Browser Go action.
    Pull user business name, address, city, postal code, email values to bind into the first 5 fields as Read Only text in the Form page.

Now I want to include the form.php file into the login page instead of putting it into the browser go to action.

When the include file is pulled in to the login (index,php) the user details must be bound into the form fields when rendered.

The standard conditional region method pulls in the form page without the api query values bound into the form fields even though the user details query has run and the form code is still showing the same bind values.

I need the include to happen as the last action of my API which verifies the login form credentials and grabs the user details for the binding values in my form.

How do I get an include file to happen with the same time execution order as my Go To Browser action when I am using the Security Provider method?

Community Page
Last updated: