Jump to content

PHP State or CDML State or BOTH!

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

Recommended Posts

HI Everyone...

I'm converting my CDML web templates and using PHP. I ran into a road block here.

Now if any of you read my post a loooong time ago using CDML & JavaScript to process multiple records, you will know that we covered lots of things and got many results.

I'm not sure how to process multiple records using FX.PHP.

I though about KEEPING the CDML and just using PHP for authentication and carying states accross each page. I don't think that will work.

Does anyone have any suggestions for doing this?


Link to comment
Share on other sites

Having the PHP scripts in the Apache Documents directory and the CDML Format files in the Web folder are not really a problem. This is because you can use PHP functions like "include" to pull the Format file through Apache. For example:




Check this thread for an example:


All the best.


Link to comment
Share on other sites

Hi Gary...

I'm looking at the code you posted on "BASIC PHP/FMP Interation".

I got this thing to work once, but for some reason it's not anymore.

Can you look at the code and tell me if I'm missing something here?

File: fmp.php


Hello World<br> 

<form action="phpEDIT.php" method="POST"> 

<input type="hidden" name="-db" value="Work_Orders_.fp5"> 

<input type="hidden" name="-format" value="-fmp_xml"> 

<input type="submit" name="-new" value="New Rec"> 



File: phpEDIT.php



if ($_SERVER["QUERY_STRING"] != "") 


@include("http://localhost:591/FMPro?" . $_SERVER["QUERY_STRING"]); 




$args = ""; 

while ($fm_params = Current($_REQUEST)) 


$args .= urlencode(key($_REQUEST)) . "=" . urlencode($fm_params) . "&"; 



@include("http://localhost:591/FMPro?" . $args); 



Link to comment
Share on other sites

This topic is 7147 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.