Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP State or CDML State or BOTH!

Featured Replies

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!

  • Author

Gary!! Thanks so much for that link...

I get it now!

Cheers!!

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

  • 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); 



}; 

?>



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

  • Author

Thank you sooo much!

I'm REALLY having a hard time here.

CHEERS!!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.