1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Current page URL form input

Discussion in 'Styling and Customization Questions' started by NinaMcI, Apr 29, 2016.

  1. NinaMcI

    NinaMcI Active Member

    Hi,
    I'm trying to render the URL of the page the user is on in a form using the following code:

    Code:
    <input type="text" class="textCtrl" size="70" name="redirect_url"  value="{URL OF CURRENT PAGE}" />
    Please could someone help me with what to put in the value="{???}" so it picks up the URL of the current page.

    Thanks.
     
    rafass likes this.
  2. katsulynx

    katsulynx Well-Known Member

    Wouldn't it be simpler to receive the URL in the php document you're sending the data to?
     
  3. NinaMcI

    NinaMcI Active Member

    I'm afraid I'm a novice and your suggestion is like reading a foreign language :confused:
     
  4. Arty

    Arty Well-Known Member

    value="{$requestPaths.requestUri}"
     
    rafass likes this.
  5. NinaMcI

    NinaMcI Active Member

    Thank you so much (y)
     
  6. NinaMcI

    NinaMcI Active Member

  7. Arty

    Arty Well-Known Member

    There is no such variable. You'll need to make one using {xen:link} that will probably look like
    Code:
    {xen:link groups, $group}
     
    rafass likes this.
  8. NinaMcI

    NinaMcI Active Member

    That worked too.
    Thanks for taking the time to advise me :)
     

Share This Page