PHP2005 Posted August 28, 2007 Posted August 28, 2007 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'); } ?>
IdealData Posted August 28, 2007 Posted August 28, 2007 Give us a clue! Can you post it on the board so others might see the solution in the future.
PHP2005 Posted August 31, 2007 Author Posted August 31, 2007 <?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'); } ?>
Genx Posted August 31, 2007 Posted August 31, 2007 ... why on earth are you echoing out the result of the include?
Recommended Posts
This topic is 6630 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 accountSign in
Already have an account? Sign in here.
Sign In Now