Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
.php question. I used the right txp code but it didn't work
Hi guys,
I decided to utilize a php forum on my contact page of my site at:http://www.runjeeta.com/contact and i got the error:
Parse error: syntax error, unexpected ‘&’ in /home/.debonhair/runjeeta/runjeeta.com/textpattern/publish/taghandlers.php(1731) : eval()’d code on line 2
I used the <code><txp:php></txp:php></code>
I don’t think its my php code. I tested it out with a forum done in php that I already know to work….
Any ideas?
Last edited by raspberryheaven (2006-09-14 20:03:44)
“Words have no wings but they can fly a thousand miles.” (Korean Proverb)
Offline
Re: .php question. I used the right txp code but it didn't work
Forum == Form?
Let’s see the code, because it is the code: <code>eval()’d code</code>
Last edited by Walker (2006-09-14 20:42:46)
Offline
#3 2006-09-14 22:32:05
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: .php question. I used the right txp code but it didn't work
Parse error: syntax error, unexpected ‘&’ in /home/.debonhair/runjeeta/runjeeta.com/textpattern/publish/taghandlers.php(1731) : eval()’d code on line 2
The error message comes straight from PHP. It means what it says: there’s a syntax error on line 2 of your code, around the ‘&’ character. Line 1731 of taghandlers.php is where the Textpattern txp:php tag runs your code. More in the FAQ.
Last edited by zem (2006-09-14 22:32:49)
Alex
Offline
Re: .php question. I used the right txp code but it didn't work
Ok. thanks. I’ll keep working on it. Also, I was wondering. You know, the only reason I wanted to use php or my contact form is beucase I believe it to be secure and spam proof. But, I saw that there is a txp:mail tag. Is that really spam proof? I looked up the tag in the textbook for textpattern but….yeah…the page was blank.
Last edited by raspberryheaven (2006-09-14 23:17:23)
“Words have no wings but they can fly a thousand miles.” (Korean Proverb)
Offline
#5 2006-09-14 23:19:20
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: .php question. I used the right txp code but it didn't work
Looks fine from here.
Nothing is really “spam proof”. The txp:email tag uses a simple entity encoding method that will defeat simple scripts. A contact form is better.
Last edited by zem (2006-09-14 23:19:58)
Alex
Offline
Re: .php question. I used the right txp code but it didn't work
You can also try out zem_contact as a plugin too.
Offline
Re: .php question. I used the right txp code but it didn't work
There are several contact form plugins btw.
http://textpattern.org/plugins/253/dcamailtoform
http://textpattern.org/plugins/236/zemcontact
Offline
Re: .php question. I used the right txp code but it didn't work
Thank you. I think I will try a plug in.
“Words have no wings but they can fly a thousand miles.” (Korean Proverb)
Offline
Re: .php question. I used the right txp code but it didn't work
I got the plug in going ( the one by zem) but I can’t make heads or tails of one of the directions. sorry! I wanted a thank you form after people emailed. so, made a thanksform in my form section and then put <txp:zem_contact form=“thanksfrom”> in my article after <txp:zem_contact mailto=“myemail.exmaple.com”/> and it doesn’t work. I mean, the thank you doesn’t show up and I get a No mailto address specified error.
What am I doing wrong now? please help!
“Words have no wings but they can fly a thousand miles.” (Korean Proverb)
Offline