We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24278
    • 165 Posts
    Hi,
    Would like to call my eform like http://www.domain.tld/forms/send-to-freind?id=9

    I would like to check in my eform if the $id is provided and then extract the pagetitle of the document and make the URL of the document and save them as hidden fileds ...
    <input type="hidden" name="pagetitle" value="The hero" />
    <input type="hidden" name="URL" value="http://www.domain.tld/documents/the-hero" />
    


    if no $id is provided (i.e. the eform is called directly and not through a link OR someone tried to extract no existent document ids) then use default content for the hidden fields...
    <input type="hidden" name="pagetitle" value="Domain Name" />
    <input type="hidden" name="URL" value="http://www.domain.tld/" />
    


    How can I achieve the above... I tried snippet calls within the form template... no use... grin
      • 24530
      • 100 Posts
      Hi!
      Couldn´t the use of "?id=9" be a problem? As "id" is already used for "index.php?id=XX" (and rewritten by friendly URL) you should use another keyword ...
        my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
        • 24278
        • 165 Posts
        Ok. point taken smiley