Tip 24: To add PHP GLOBALS to a login log table or whatever, this is what I had to do to avoid parser errors with the PHP scripts.
My goal was to put in the login form a hidden input field so I could identify what page on the domain the user used to login. This site has an Admin and User site access points. I wanted to use a log to view later to keep up with who was using each access page.
<dmx-value id="var_page" value="<?php echo basename($_SERVER['PHP_SELF']); ?>"></dmx-value>
<dmx-value id="var_domain_page" dmx-bind:value="var_domain.value + '/' + var_page.value"></dmx-value>
The input field would look like this:
<input name="domain" type="text" dmx-bind:value="var_domain_page.value">