I'm doing a ready reckoner for a project. I have the coding done for the answers to questions submitted, but when I check it, although the right answer appears, so do the answers to the other options.
i.e. the second echo (titles of perfumes) all appear on the answer page.
#!/usr/dist/bin/php
<p>Your perfect perfume is:
<?php
$chosen_scent = $_GET['favescents'];
if($chosen_scent=='rose')
echo 'you chose rose-';
echo "Chanel No.5, Anna Sui-Live Your Dream, DKNY, Issey Miyake-Le Feu dIssey";
if($chosen_scent=='jasmine')
echo 'you chose jasmine-';
echo "Chanel No.5, Anna Sui-Live Your Dream, DKNY";
if($chosen_scent =='orange')
echo 'you chose orange-';
echo "Chanel No.5, DKNY" ;
if($chosen_scent =='sandalwood')
echo 'you chose sandalwood-';
echo "Chanel No.5, Anna Sui-Live Your Dream, Kylie-Darling";
if($chosen_scent =='freesia')
echo 'you chose freesia-';
echo "Kylie-Darling, Benefit-Something About Sofia";
if($chosen_scent == 'freshblossom')
echo 'you chose freshblossom-';
echo "DKNY";
if($chosen_scent =='lily')
echo 'you chose lily-';
echo "Kylie-Darling, Issey Miyake-Le Feu dIssey, Benefit-Something About Sofia" ;
?>
</p>
Can anyone help????