Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-14 19:55:12

raspberryheaven
Member
From: Washington state USA
Registered: 2006-05-21
Posts: 52
Website

.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

#2 2006-09-14 20:37:01

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#4 2006-09-14 23:15:07

raspberryheaven
Member
From: Washington state USA
Registered: 2006-05-21
Posts: 52
Website

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

#6 2006-09-14 23:22:35

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#7 2006-09-14 23:27:40

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#8 2006-09-15 02:04:10

raspberryheaven
Member
From: Washington state USA
Registered: 2006-05-21
Posts: 52
Website

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

#9 2006-09-15 03:06:12

raspberryheaven
Member
From: Washington state USA
Registered: 2006-05-21
Posts: 52
Website

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

Board footer

Powered by FluxBB