Jump to content
Server Maintenance This Week. ×

executable php in calculated text field


This topic is 4197 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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;
?>

 

Link to comment
Share on other sites

This topic is 4197 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.