Inserting PHP Code Variable In Form

I’ve done this before, and this page work fine. However now I’m getting some parse errors. I just can’t see where the errors might be in the PHP code.

What I want to do is place the domain & page address in a user login log table via login form. I have a step that inserts this info plus a timestamp and username after the login validation takes place. See the

<?php $domain = $_SERVER["SERVER_NAME"]; $page = basename($_SERVER["PHP_SELF"]); $domain_page = $domain . "/" . $page; ?>

Inside the form I have the following input field…

Should I set up var using Wappler and forgo the actual <?php ; ?>?

Community Page
Last updated: