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

    i got some strange issues with eForms here.

    As soon as i activate friendly URLs, my eForm doesn’t work anymore.
    Clicks on "Submit" Buttons just seems to reload the form. Nothing happens.

    eForm Call:
    [[eForm? &formid=`eAnfrageClients` &to=`[email protected]` &from=`[+email+]` &subject=`KUNDEN: Eine neue Kurzanfrage ist eingegangen!` &tpl=`eAnfrageClients` &report=`eAnfClientsReport` &thankyou=`eAnfrageThx` &vericode=`1`]]


    Chunk:
    [+validationmessage+]
    
    <form method="post" action="[~[*id*]~]" id="eAnfrageClients" name="formid">
    	<table>...


    I tried to insert [(base_url)] before the [~[*id*]~] in action-tag but nothing changed.

    Any other ideas?

    Cheers,
    Filip
      • 37550 ☆ A M B ☆
      • 711 Posts
      Hi,

      How have you enabled friendly URLs on the IIS Server? It sounds like the custom error page is set to /index.php and when this is used alone it will drop all form data.

      Let me know more about your setup.

      Thanks Aaron
        http://www.onesmarthost.co.uk
        UK MODX Hosting with love.
        • 9689
        • 5 Posts
        Quote from: Onesmarthost at May 12, 2010, 04:56 PM

        Hi,

        How have you enabled friendly URLs on the IIS Server? It sounds like the custom error page is set to /index.php and when this is used alone it will drop all form data.

        Let me know more about your setup.

        Thanks Aaron

        Hi,

        right. I just set the 404 and 405 error pages to index.php

        What else has to be done?

        cheers,
        Filo
          • 9689
          • 5 Posts
          Quote from: Onesmarthost at Feb 17, 2007, 06:31 AM

          Hi Timfel,

          I found that using the 404 and 405 method when using forms IIS would dump the data before MODx could process it which resulted in the forms not working.

          If it’s a single site on your server you can use the ISAPI Rewrite lite version which is for one site only and free!! smiley

          Once you install this on your server or find a host who has it, the rest is very easy.

          Steps

          1) Point 404 and 405 to index.php
          2) in the wwwroot folder create a file called "httpd.ini" and add the following contents


          [ISAPI_Rewrite]
          # 3600 = 1 hour
          CacheClockRate 3600

          RepeatLimit 32
          # Block external access to the httpd.ini and httpd.parse.errors files
          RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

          # Block external access to the Helper ISAPI Extension
          RewriteRule .*\.isrwhlp / [F,I,O]

          RewriteEngine On
          RewriteCond Method GET|HEAD

          RewriteRule /(?!(?:manager|assets)/)(.*)\.html(?:\?(.*))? /index.php?q=$1?2&$2: [I,L,U]

          3) Log into MODx manager -> Click Administration -> System Configuration -> Friendly URL Settings

          My Settings are:

          Use Friendly URLS = yes
          Prefix for friendly URLS =
          Suffic for friendly URLS = .html

          Let me know how you get on, with the above settings FURLS work perfectly and in my webstats It logs the actual page name called and not a 404 error page, also forms work perfectly.


          i already followed the steps above. but i think that the httpd.ini file doesnt affect anything. how can i test the functionality of httpd.ini ?

          cheers
            • 9689
            • 5 Posts
            I just had to add the .dll from ISAPI ReWrite to the ISAPI-Filters in IIS.