We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36649
    • 77 Posts
    Hello,

    I'm trying to populate a WebLoginPE register form (and a custom table) with a hidden field containing the value of the registrant's IP adress (in MODX Evo 1.0.6, WebLoginPE 1.3.1).

    I have a WebLoginPE call (shortened):
    [!WebLoginPE? &lang=`de` &type=`register` &regType=`verify` ...  &registerTpl=`memberRegisterVerifyFormTpl` ....  &ip_adr=`[!ipAdress!]` ... !]



    The value for &ip_adr is generated by a snippet called ipAdress:
    <?php
    return $_SERVER['REMOTE_ADDR'];
    ?>


    And the memberRegisterVerifyFormTpl:
     <form id="wlpeRegisterForm" name="wlpeRegisterForm" action="[~[*id*]~]" method="post">
        <fieldset id="wlpeRegisterFieldset" class="wlpeInputFieldset">
    <input name="ip_adr" type="hidden" value="[+ip_adr+]" />
    ....


    Doesn't work this way, the value of form field "ip_adr" remains empty... I tried several ways, and I found some examples for passing values to eForm, but at the moment I don't see the right way to pass the snippet value to memberRegisterVerifyFormTpl.

    Any help is greatly appreciated smiley