Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Ampersand in form name in 4.0.3 causes problems in 4.0.4
When I designed our site, in 4.0.3, I used a form name called “front_columns2&3” (I know, I know, special characters were always going to cause problems in the end…)
However, the form has worked (and still does work) perfectly, both in 4.0.3 and 4.0.4. The one problem I have is trying to edit the form in 4.0.4 Presentation>Forms – when I click on “front_columns2&3” it brings up a blank form called “front_columns23”.
The link to edit the form is “/textpattern/?event=form&step=form_edit&name=front_columns2%263”. I’ve tried changing the “%26” in the URL to “&” and “&” to no avail.
If the worst comes to the worst, I can reverse-engineer the form, but I’d like to get the contents and rename it. Is there any obvious way to do this ?
Thanks in advance…
~Nick
Last edited by NickML (2007-04-01 20:17:48)
Offline
Re: Ampersand in form name in 4.0.3 causes problems in 4.0.4
No, thanks for the reply, but afraid not. That brings up another non-existant form called “front_columns2%263”
~Nick
Offline
Re: Ampersand in form name in 4.0.3 causes problems in 4.0.4
Rename the form name using PHPmyAdmin or use this bit of PHP code in one of your templates:
<pre>
<txp:php>
echo htmlspecialchars(fetch_form('front_columns2&3'));
</txp:php>
</pre>
That should show the contents of the form when viewing a page that uses the template where you’ve inserted that bit of PHP code.
Last edited by ruud (2007-04-01 20:32:41)
Offline
Re: Ampersand in form name in 4.0.3 causes problems in 4.0.4
Thanks, Ruud: that’s just what I was after…very much appreciated.
~Nick
Offline