Would someone please help me with this? I have been trying to resolve this for a couple of days and I have tried using info I found on this board, but I am getting no closer.
I have a form with a single checkbox. If the user checks it, I want the orderthanks incl. to be returned. If they do not check it, then I want orderthanks2 incl to be returned. I am trying the isSet statement below. If I do it this way then it always loads the first inc. file. If I try it with just the second if statement alone, then it returns the 2nd include, but not the first. When the box is checked the value returned is 'on', I have tried it using that as well, does not work. I am sure there is something simple that I am missing. Any help would be greatly appreciated.
<?
if (isSet($_POST['add_ccinfo']) && $_POST['$add_ccinfo == 1'])
{
$add_ccinfo = 1;
}else{
$add_ccinfo = 0;
}
if ($add_ccinfo == 1)
{
include("pages/order_thanks.inc.php");
}else{
include("pages/order_thanks2.inc.php");
}
?>