November 13, 201213 yr I am trying to echo a filemaker text field into a php page. Inside the text field are additional php echo commands that I want to use to customize the presented text for the current user. The echo of the large text field works, but the echo commands that are inserted in the larger text field are presented literally and not executed. Can anyone help me with this? Thanks.
November 14, 201213 yr Please post your php script, or at least the echo line, along with the field contents of your FM field.
November 14, 201213 yr I found this online, and it seemed to work in my limited testing, but I can't say that I understand it! <?php$FieldText = $YourFM->getField('YourPHPtextField'); eval("$FieldTextExe="$FieldText";"); echo $FieldTextExe; ?>
November 14, 201213 yr eval can be very dangerous... Read the manual on this one before using it: http://php.net/manual/en/function.eval.php
Create an account or sign in to comment