May 12, 200421 yr 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? Thanks!
May 12, 200421 yr Addam, Here is a post about editing multiple records with PHP and CDML: Edit Multiple Records with CDML and PHP Good Luck. Garry
May 12, 200421 yr 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: <?php include("http://localhost:591/FMPro?........"); ?> Check this thread for an example: PHP and CDML All the best. Garry
May 12, 200421 yr Author 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 <body> 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"> </form> </body> File: phpEDIT.php <?php if ($_SERVER["QUERY_STRING"] != "") { @include("http://localhost:591/FMPro?" . $_SERVER["QUERY_STRING"]); } else { $args = ""; while ($fm_params = Current($_REQUEST)) { $args .= urlencode(key($_REQUEST)) . "=" . urlencode($fm_params) . "&"; next($_REQUEST); }; @include("http://localhost:591/FMPro?" . $args); }; ?>
May 13, 200421 yr Addam, The phpEDIT.php script is just for filtering requests. To edit Multiple Records the code is different. You need to process the Arrays from the Form. I will have a look at what you are doing shortly. All the best. Garry
Create an account or sign in to comment