August 28, 200718 yr 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. : : === 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'); } ?>
August 28, 200718 yr Give us a clue! Can you post it on the board so others might see the solution in the future.
August 31, 200718 yr 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'); } ?>
Create an account or sign in to comment