If I have dropdownlist as below
<select onChange="this.value;">
<option value="Volvo" id="volvo">Volvo</option>
<option value="Saab" id="saab">Saab</option>
<option value="VW" id="vw">VW</option>
<option id="audi" value="Audi" selected>Audi</option>
</select>
I want to display discription of item selectd so I have below code
<div id="boxpopup" class="box">
<a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a>
<div id="content">
This is popupbox of Audi
</div><!--end of content -->
</div><!--end of popupbox -->
now in content can I give If else as below
<div id="boxpopup3" class="box">
<a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a>
<div id="content">
<?php if($id=="volvo"){ ?>
This is popupbox of Volvo
<?php } elseif($id=="saab"){ ?>
This is popupbox of Saab
<?php } elseif($id=="vw"){ ?>
This is popupbox of VW
<?php } else { ?>
This is popupbox of Audi
} ?>
</div><!--end of content -->
</div><!--end of popupbox -->
The error is occurs
Notice: Undefined variable: id
please help me :(