Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-11-01 23:10:25
- lumin161
- Member
- From: Czech Republic
- Registered: 2012-03-29
- Posts: 10
Problem with php and forms
Hi,
i have quite big problem with forms.
I’m using php (in <txp:php> tags) on some pages, but if it’s used on the same page where is form (for example footer)
the form isn’t activated.
Can I fix this bug?
Thanks a lot :)
Offline
#2 2012-11-01 23:31:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Problem with php and forms
It’s not a bug, more likely something wrong with your code. Can you post a tag trace of a page where this happens?
Offline
#3 2012-11-01 23:51:20
- lumin161
- Member
- From: Czech Republic
- Registered: 2012-03-29
- Posts: 10
Re: Problem with php and forms
I think this part would be enought…
This is part of right column with informations and very simple php.
...
<h2>Dnešní vypravenost</h2>
<txp:php>include "mosd/vypravenost.php";</txp:php>
<h2>Aktuálně z provozu</h2>
<txp:output_form form="vyluky" />
<h2>Důležité odkazy</h2>
...
With this part <txp:php>include "mosd/vypravenost.php";</txp:php>
makes
this part <txp:output_form form="vyluky" />
nothing.
But alone it’s OK.
And this problem is everywhere (and with footer to).
{Edited to add some Textile for better code display. – Uli}
Last edited by uli (2012-11-02 00:54:05)
Offline
#4 2012-11-02 08:48:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Problem with php and forms
Hi, that is not a tag trace, you can find that at the bottom of the html source (please read the instuctions). It shows the exact tag’s output and – most of the time – why it doesn’t display what you expect.
Offline
#5 2012-11-02 09:11:49
- lumin161
- Member
- From: Czech Republic
- Registered: 2012-03-29
- Posts: 10
Re: Problem with php and forms
Thanks a lot… It was bug, but not in textpattern :)
You save my time. :)
Offline
#6 2012-11-02 18:23:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Problem with php and forms
lumin161 wrote:
It was bug, but not in textpattern :)
Ah, good! :)
Offline
Pages: 1