Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

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