WebSite X5Help Center

 
Norman G.
Norman G.
User

How to link a mail form action to an internal project file  en

Autor: Norman G.
Visitado 2559, Seguidores 1, Compartilhado 0  
Tags: form,get,mail

If I want a mail form to link to an internal php page (that is part of my website), how do I link to that? I noticed that the selection form will only let me select a file on my computer using the picker. It will not let me type a filename in the blank, nor is there a picker option for the files in the project. I would like the form GET action to link to a php file within my project. I have gotten around it by hand-coding my own html form, but just wondered if it is possible to use the built-in form creator. I'm using Website X5 Professional 10.

Publicado em
6 RESPOSTAS - 1 CORRIGIR
Anthony A.
Anthony A.
User

can you explain more or attch a picture?

are talking about confirmation page? are you talking about email form object? sent button?

if you are talking about confirmation page which can apear after visitor submits his/her info, it in email form object >send tab, bottom right, you can choose their landing page.

Ler mais
Publicado em de Anthony A.
Norman G.
Norman G.
User
Autor

I'm referring to the email form object (see attached picture).  The file picker does not allow direct entry (such as a url or project file), but only files from the local system.

What I am doing is placing a form on a page and having the submit button call another project page (php) to return the results.  It works fine if I manually create the form and put the local page name in the action.  I'd just like to be able to use the built in form creator in the email form object, if that's possible, instead of hand-coding my own forms.

Ler mais
Publicado em de Norman G.
Incomedia
Claudio D.
Incomedia

Hello Norman,

This function does the same. You need only to prepare the php file and then add it in the selection so when the program exports the project online this will will be uploaded too and the form then will automatically send all data to this php file and show the result.

Many thanks!

Ler mais
Publicado em de Claudio D.
Norman G.
Norman G.
User
Autor

Yes, I can do that.  But the results page is not shown in a project page, but, rather, on a blank page.  I want the form to call another project page which has an html object on it with the php code.  For example:

projectpage1 - regular page with cell containing html object with a form.

projectpage2 - php page in the project with a cell containing an html object with the php code in it.

If I use an email object on projectpage1 instead of an html object, I can't call projectpage2 as the action on the email object form because the picker won't let me select a project page.  It will only let me select a php file on my computer.  That file does not let me render within the context of an existing project page which has all the styles applied.  I am doing exactly what I want by coding the form myself.  My question is:  Why can't I do the same thing using the email object form generator?  I cannot call a project page from the picker, nor can I edit the html to force the action to a project page instead of an external php file.

Ler mais
Publicado em de Norman G.
Incomedia
Claudio D.
Incomedia

Hello Norman,

At the moment this option is not present and I would suggest you to open an "Idea" post to suggest it.

It should be possible to edit the exported HTML code so you can change the URL so it points to the internal page. As alternative you could use the external PHP page to redirect then all to an internal page.

Many thanks!

Ler mais
Publicado em de Claudio D.
Norman G.
Norman G.
User
Autor

Thanks for the response.  I will turn it in as a suggestion for a future release.  The problem with changing the html is that every time you upload a site, it will overlay the html you changed.  I'll stick with "manual" form creation for now, which lets me access the internal pages by filename.

Ler mais
Publicado em de Norman G.