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
I looked at your php code and the solution is sound, however as far as I know there are parameters in the browser component that can do this in a far simpler way.
add your browser component
Look at browser data bindings > location > href
This should produce {{browser1.location.href}} the only issue I know with it is that if you use routes it is still going to show the original path and not the more clean route path you chose.
Man, I am not acquainted with that facet of the browser component. Thanks for another option. I am an amateur compared to you guys. I know virtually nothing compared to you all. I appreciate all the help you provide.
Dont worry, i did the same thing as you, until Teodor pointed it out to me a few months back. hahaha, once you know its under location it makes sense, but when you first see the browser component parameters you almost expect location to be for map stuff, lol
I put a few lines of code demonstrating most of the browser component features. You can paste the code into any page to see the results. Here’s the thread.