user defined tag error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jdwork
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 23, 2006 7:03 pm

user defined tag error

Post by jdwork »

hello,

I am trying to post some data from my form and I am using a user defined tag on my thank you page
UserDefinedTag = postdatatest

I've tried:
echo '
  foreach($_POST as $k => $v){
     echo "$k => $v ';
  }
';

producing warning:
# Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/www/cmsmadesimple/admin/adduserplugin.php(100) : eval()'d code on line 5 Parse error: syntax error, unexpected '}' in /home/www/cmsmadesimple/admin/adduserplugin.php(100) : eval()'d code on line 6

and I've tried:
echo 'foreach($_POST as $k => $v){echo "$k => $v '; }' ;
# Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/www/cmsmadesimple/admin/adduserplugin.php(100) : eval()'d code on line 1 Parse error: syntax error, unexpected '}' in /home/www/cmsmadesimple/admin/adduserplugin.php(100) : eval()'d code on line 2

I'm not a coder and any insight would be appreciated.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: user defined tag error

Post by calguy1000 »

this is not a CMSMS issue, it's a PHP language issue.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jdwork
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 23, 2006 7:03 pm

Re: user defined tag error

Post by jdwork »

Solved it!

It seems I cannot use {register} as a user defined tag. 

I changed the tag name to {postit} and all is well.

cheers
Post Reply

Return to “Modules/Add-Ons”