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.

Help - can't get the include() to work

Featured Replies

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

}

?>

  • Author

Hi All,

Got it working! Thank you!

Give us a clue!

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

  • Author

<?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');

}

?>

... why on earth are you echoing out the result of the include?

Create an account or sign in to comment

Important Information

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

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.