Page 1 of 1

possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 12:25 pm
by heynen
Dear all,

I want to put a form on my master page, but it doesn't work.
When I put the same form on a normal page, it works correctly.

Is the problem perhaps that the master frame is then php, whereas the pages using that master frame a still html?

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 1:07 pm
by Pablo
What extacly "does not work"?
Is there an error?

The content page should be set to PHP.

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 7:21 pm
by heynen
thanks for your help!

what happens is that part of the code is displayed on top of the page:
"; throw new Exception($error); } $message .= $eol; $message .=
(etc)

So if I understand your answer right, if the master frame is php, the content page (that is inserted into the "content place holder") needs to be php as well, right?

Are there any disadvantages from changing all my content pages to php?

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:03 pm
by Pablo
This indicates that the page extensions is not set to PHP.

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:06 pm
by heynen
Thanks!

1) If the master frame is php, ALL related content pages need to be php as well?
2) Any disadvantages from switching all my pages to php?

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:13 pm
by Pablo
The page extension of the master page does not mater because the master page should not be not published.

All pages that have a form should be set to PHP, otherwise the server does not know what to do with the code.

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:16 pm
by heynen
The form is directly on the master FRAME (not page, do not know it this makes a difference in this case).

So I have to switch all pages to php that use this master frame?

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:20 pm
by Pablo
So I have to switch all pages to php that use this master frame?
Yes

Re: possible to put a form on a master frame?

Posted: Mon Jun 01, 2020 8:23 pm
by heynen
Thanks!