Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-03 19:06:31

roobarb!
Member
From: Salford, UK
Registered: 2006-02-10
Posts: 10
Website

PHP in a form fails to run on error pages

Hi all,

Working on my new site to go live on Wednesday (to coincide with CSS Naked Day) and have just discovered a bit of an oddity that I’ve not been able to find an answer to…

I’ve got some PHP code in a form that generates the <head> for all of the pages. It works perfectly – except for when it’s called by the error_default page. Looking at the code it would appear that none of the PHP is being processed – it’s just sitting there in amongst my HTML. :o/

Are there any clues as to why this would be happening? Does the error page have something different about it that I can tweak?

Any clues greatly appreciated!

All the best,

Andy.

Last edited by roobarb! (2006-04-03 19:07:39)

Offline

#2 2006-04-03 22:00:21

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: PHP in a form fails to run on error pages

Are you using the <txp:php> tag, or < ?php ?>?


Alex

Offline

#3 2006-04-03 22:40:24

roobarb!
Member
From: Salford, UK
Registered: 2006-02-10
Posts: 10
Website

Re: PHP in a form fails to run on error pages

Hi zem,

Well that was an easy one – I was using &lt;?php ?&gt;, but I swapped over to the &lt;txp:php&gt; tags and it works a treat now! Thank you!

Just in case anyone else wants to get involved with the CSS Naked Day, my site’s not really up yet, but you can grab my TXP-i-fied versions of Stephen Clay and Luke Wertz PHP code for replacing stylesheets on April 5th.

You can grab the local (24 hour) version or the global (48 hour) version, depending on how long you want to show off your (X)HTML for. ;o)

All the best,

Andy.

Last edited by roobarb! (2006-04-04 08:32:57)

Offline

Board footer

Powered by FluxBB