3 Replies Latest reply: Oct 16, 2014 6:53 PM by Abhishek Maurya RSS

    Looking to change my form action from the default (.php) to .asp (or other extensions)

    Konrad_Zuse

      Hello all,

       

      MY site is currently using asp pages, and we are redesigning with muse.  Unfortunately I am getting an error when replacing the generated .php page, with my own .asp pages.

       

      I am in the process of speaking with chat, and they really couldn't help me as it's not a "supported workflow" as in "We don't encourage our users to change the generated html," and sent me here

       

      I would like to know if anyone has tried to change their extensions and has succeeded? 

       

      I see here Customizing Web Forms that .aspx pages are used, but according to chat, that is due to "Business Catalyst not supporting php," while third-party sites use php, their own hosting uses aspx.

       

      I would appreciate anyone's input into this, due to complications with using PHP on my server I would really like to get my own pages working if possible.  If not .ASP, does anyone have any experience changing the default in general?

       

      If additional info is needed I will get it, I am the middle man in this so I appreciate your time and patience.

       

      Thank you very much!

       

      Message was edited by: Abhishek Maurya - Removed extra line breaks

        • 1. Re: Looking to change my form action from the default (.php) to .asp (or other extensions)
          Abhishek Maurya Adobe Employee

          Hi Konrad,

           

          When the web forms are submitted, the information in the fields are passed using some variables on to the action url page which handles the data and process it as you like. So, merely changing the action url to asp pages will not work, until the pages that are handling the data is processing the data properly.

           

          Some helpful links -

              My first HTML form - Web developer guide | MDN

              How to make a web form

           

          Let me know if you need further clarification on this.

           

          - Abhishek Maurya

          • 2. Re: Looking to change my form action from the default (.php) to .asp (or other extensions)
            Konrad_Zuse Community Member

            Thank you.  I understand how to use forms, but can I do this using a custom action, and not the actions provided aka something.asp, instead of custom123213.php?

             

            Again, as I said I am the middle man in this, is there something in Muse that I can make custom form actions or what?  What exactly do I need to do to create the form to redirect to an asp page.

             

            Thank you for your time..

             


            EDIT:  From what it seems like I just need to name the variables the same in both places?

             


            What exactly is needed to get this working?

             


            EDIT2:  I noticed there is a bunch of special PHP form pages like Form_Check, seems like this is very embedded and it's sad that we cannot use custom actions and such.

            • 3. Re: Looking to change my form action from the default (.php) to .asp (or other extensions)
              Abhishek Maurya Adobe Employee

              Hi Konrad,


              Yes, you can use custom action url and replace the one that is generated via Muse. When you generate the html via Muse, it exports all the php files to which the forms submits to. So, you can take a look on how the data is being handled and know how you need to do the same with your custom asp script.


              The name attribute is used to pass on the variables to the script running at the server. Id is used for the client side JS and CSS.


              Changing just the action url will not do it. You will need to first know how the Muse scripts are handling the data and then try to achieve the same with your custom script.


              Note - If you alter the Muse generated html then when you publish from Muse the next time, it will overwrite your changes. So, you will need to make those changes after every export.


              - Abhishek Maurya