Page 1 of 1

user defined tag error

Posted: Sat Jan 17, 2009 12:02 am
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.

Re: user defined tag error

Posted: Sat Jan 17, 2009 12:19 am
by calguy1000
this is not a CMSMS issue, it's a PHP language issue.

Re: user defined tag error

Posted: Fri Jan 30, 2009 8:06 pm
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