I am using an include to go to different PHP scripts. All of them open into a new page except for one. I can't for the life of me figure out why this one insists on appending the script to the previous script. Here is my code for the switch script:
switch($submitter)
{
case "Shop Some More":
{
include("displaycategories.php");
break;
}
case "Checkout":
{
include("customer.php");
break;
}
case "Update":
{
include("ShoppingCart.php");
break;
}
case "Cancel":
{
include("displaycategories.php");
break;
}
case "Email and call 800 number":
{
include("customer.php");
break;
}
case "Email your order":
{
include("customer.php");
break;
}
case "Use PayPal":
{
include("customerpaypal.php");
break;
}
case "Continue Checkout":
{
If ($EmailDone == 1){
include("GoToPayPal.php");
break;
}
else {
include("customerpaypal.php");
break;
}
}
default:
{
include("customer.php");
break;
}
} // end switch
This script is the only one appending on the previous one:
include("GoToPayPal.php"); And I know it goes there because the button does display but it displays on the end of another script.
Here is the code for GoToPayPal.php such as it is right now:
<?php
session_start();
?>
<HTML>
<HEAD>
<TITLE>Landscape Light Checkout Form</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="style1.css">
</HEAD>
<BODY>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bufo@emailaccount.com">
<input type="hidden" name="item_name" value="Landscape Lighting Order">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value=<?PHP echo($total) ?>>
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</BODY>
</HTML>
Any ideas would be appreciated,
judi
switch($submitter)
{
case "Shop Some More":
{
include("displaycategories.php");
break;
}
case "Checkout":
{
include("customer.php");
break;
}
case "Update":
{
include("ShoppingCart.php");
break;
}
case "Cancel":
{
include("displaycategories.php");
break;
}
case "Email and call 800 number":
{
include("customer.php");
break;
}
case "Email your order":
{
include("customer.php");
break;
}
case "Use PayPal":
{
include("customerpaypal.php");
break;
}
case "Continue Checkout":
{
If ($EmailDone == 1){
include("GoToPayPal.php");
break;
}
else {
include("customerpaypal.php");
break;
}
}
default:
{
include("customer.php");
break;
}
} // end switch
This script is the only one appending on the previous one:
include("GoToPayPal.php"); And I know it goes there because the button does display but it displays on the end of another script.
Here is the code for GoToPayPal.php such as it is right now:
<?php
session_start();
?>
<HTML>
<HEAD>
<TITLE>Landscape Light Checkout Form</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="style1.css">
</HEAD>
<BODY>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bufo@emailaccount.com">
<input type="hidden" name="item_name" value="Landscape Lighting Order">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value=<?PHP echo($total) ?>>
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</BODY>
</HTML>
Any ideas would be appreciated,
judi