|
How about you add a new variable called $details_part to each section to remember what was typed in. Then you can print it later. So, your code would look like this:
/* Thursday Lunch Options */
if($thursday_lunch == 0){
echo "<span class=subheader>You have chosen to attend the Ladies' Luncheon & Auction on Thursday.</span><br>";
$details .= "One ticket to Ladies Luncheon on Thursday\n";
$details_part = "One ticket to Ladies Luncheon on Thursday";
}
elseif($thursday_lunch == 10){
echo "<span class=subheader>You have chosen to attend the Hunter's Bonanza Luncheon and Auction on Thursday.</span><br>\n";
$details .= "One ticket to Bonanza Luncheon on Thursday\n";
$details_part = "One ticket to Bonanza Luncheon on Thursday";
}
elseif($thursday_lunch == 20 ){
echo "<span class=subheader>You have chosen 1 ticket to attend the Hunter's Bonanza Luncheon and Auction and one ticket for the Ladies' Luncheon & Auction on Thursday.</span><br>\n";
$details .= "One ticket to Bonanza Luncheon and one ticket to Ladies auction on Thursday \n";
$details_part = "One ticket to Bonanza Luncheon and one ticket to Ladies auction on Thursday";
}
elseif($thursday_lunch == 30){
echo "<span class=subheader>You have chosen a pair of tickets to attend the Hunter's Bonanza Luncheon and Auction on Thursday.</span><br>\n";
$details .= "Two tickets to Bonanza Luncheon on Thursday\n";
$details_part = "Two tickets to Bonanza Luncheon on Thursday";
}
if($fullregistration){
$total = $total + $fullregistration;
if($fullregistration==255){
$account_description="Individual Full Registration";
} else {
$account_description="Couple Full Registration";
}
echo "<TR><TD><span class=text>Registration</span></TD><TD><span class=text>$account_description ($details_part)</span></TD><TD align=right><span class=text>1</span></TD><TD align=right><span class=text>$$fullregistration.00</span></TD><TD align=right><span class=text>$$fullregistration.00</span></TD>";
}
I hope that's what you meant, and that it helps. If you're trying to find which bits are different, it is only all the lines with $details_part. There are smarter ways of doing it, but this is probably the eastiest.
|