I'm green to PHP but wrote a script quite some time ago to calculate some values. I'm porting this to a new CMS that allows PHP, but I keep getting errors when saving the file, and have narrowed it down to just this one line. I had to remove " " on all the other lines.
echo "<form action="<? echo $_SERVER['../PHP_SELF'] ?>" method="POST" class="style2">";
Can anyone tell me what I am doing wrong here? It works fine in another CMS, but with this CMS I have to remove all <?php, etc.
The error received is:
# Parse error: syntax error, unexpected '?' in C:\Program Files\VertrigoServ\www\cms\admin\edituserplugin.php(108) : eval()'d code on line 18
Pulling this line out doesn't error the page save, so it definitely is this line.
TIA