Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Parse error: syntax error, unexpected $end in...
Why won’t you use ZCR
Gallex wrote:
hmm…but code itself somehow not working… :(
Where do you get all those variables including $send
, $eesnimi
and so on? Those variables won’t work if you don’t set them to hold some data before using. In your case, for example, you have to set post data to the variables.
If that is your whole code, it is only going to return a one $error (_undefined variable $send) and the form. Nothing more. It doesn’t work as it is. You need to define the variables.
It would be adviced to actually clear the input data from Javascript and all other sorts of hacks that could do harm.
tested this whole code with rah_test_php plugin and got the error:
rah_test_php just parses the PHP and returns answer. Read: it’s no debugger, neither you can use it as an interface usage instructor. It is used to, for example, to decode strings, string transforms, array manipulations and so on. Also note that you don’t use <txp:php> nor <?php
in it’s input.
Last edited by Gocom (2009-06-05 11:23:08)
Offline
#14 2009-06-05 12:08:25
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: Parse error: syntax error, unexpected $end in...
Gocom wrote:
Why won’t you use ZCR
actually i’m using ;) and everything works well
except one thing: client needs sender name instead of sender email address to appear in from field in email header. zcr could not provide this :( i already asked it here
Offline