Jump 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 FX and valuelist

Featured Replies

I am trying to display two valuelists in a webpage. My first valuelist shows up perfectly, but my second valuelist shows the first valuelist twice. I am using the code provided in the FX.php documentation for displaying valuelist from FileMaker6.

I guess I am missing a step though. I am using the same exact code for my first valuelist for the second value list. The name of my first valuelist is called 'Disease.' The name of my second valuelist should be 'Diagnosis' -where can I change this???




$DiagnosisName = new FX('127.0.0.1');

$DiagnosisName->SetDBData('<same as in first valuelist>', 'same as in first valuelist');

// password line purposely omitted

$ReturnedData1 = $DiagnosisName->FMView(); // stores layout information in $ReturnedData

foreach ($ReturnedData1['valueLists'] as $key => $value) {

foreach ($value as $key1 => $value1) {

$valuelistData[$key] .= "t<option value="$value1">$value1</option>n";

}

echo "<select name="$key">n";

echo $valuelistData[$key];

echo "</select>n";

echo "<br />n";

}



Thanks

FileMaker Version: 6

Platform: Windows XP

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.