Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a index.php which has a radio buttom with a option to click on USA or INTERNATIONAL and after click at submit buttom, it will take to verify.php where I have a case statement, but for some reason the problem appears to be at the include() because is not taking to the page which supposed to go. Any help will be appreciated. Thank you in advance. : : :D:(:(

=== index.php ===

USA

INTERNATIONAL

=== verify.php page ===

include_once('../../FX/FX.php);

include_once( '../../FX/FMError.php');

include_once('../../FX/server_data.php');

$new_member = new FX(FM_IP_ADDRESS, FM_WEBCOMPANION_PORT);

$new_member->SetDBData('Publications_Order_Form.fp7','Customers');

$new_member->SetDBPassword('','admin');

$new_member->AddDBParam('country',implode("n", $_GET[country]));

$newUserResult = $new_member->FMview();

?>

<?php

$country = $_POST['country'];

switch ($country)

{

case "USA":

//echo("testing");

include 'usa_items.php';

break;

case "INTERNATIONAL":

//include("int_items");

include ('int_items.php');

break;

default:

echo ("Only 'USA' or 'INTERNATIONAL' can be selected.

n");

include ('index.php');

}

?>

Posted

Give us a clue!

Can you post it on the board so others might see the solution in the future.

Posted

<?php

$country = $_POST['country'];

switch ($country)

{

case "USA":

$foo = include 'usa_items.php';

echo $foo;

break;

case "INTERNATIONAL":

$bar = include 'int_items.php';

echo $bar;

break;

default:

echo ("Only 'yes', 'no', or 'other' can be selected.

n");

include ('index.php');

}

?>

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