Addam Posted May 12, 2004 Posted May 12, 2004 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!
Garry Claridge Posted May 12, 2004 Posted May 12, 2004 Addam, Here is a post about editing multiple records with PHP and CDML: Edit Multiple Records with CDML and PHP Good Luck. Garry
Addam Posted May 12, 2004 Author Posted May 12, 2004 Gary!! Thanks so much for that link... I get it now! Cheers!!
Garry Claridge Posted May 12, 2004 Posted May 12, 2004 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
Addam Posted May 12, 2004 Author Posted May 12, 2004 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); }; ?>
Garry Claridge Posted May 13, 2004 Posted May 13, 2004 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
Addam Posted May 13, 2004 Author Posted May 13, 2004 Thank you sooo much! I'm REALLY having a hard time here. CHEERS!!
Recommended Posts
This topic is 7569 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