Hammerton Posted November 13, 2012 Posted November 13, 2012 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.
doughemi Posted November 14, 2012 Posted November 14, 2012 Please post your php script, or at least the echo line, along with the field contents of your FM field.
doughemi Posted November 14, 2012 Posted November 14, 2012 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; ?>
webko Posted November 14, 2012 Posted November 14, 2012 eval can be very dangerous... Read the manual on this one before using it: http://php.net/manual/en/function.eval.php
Recommended Posts
This topic is 4750 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now