I have a problem on my php code.I am a beginner in php programmng language.I am using codeigniter to do this.But,when i receive my data using php in controller makes this problem.It makes selectbox with only two elements on it. one is 'select nation' and another is '$'.c['Nation_name']. this works on html properly.But when i using it controller using ajax makes this problem.Please help me friends...
echo"<select name='sel_PAdrs_nation'
value=".$sel_nation."onchange='state(this.value,'C')'
id='sel_PAdrs_nation'><option>Select Nation</option>
<?php
if(isset('$'.contentCoun)){
foreach('$'.contentCoun as '$'.c){
if('$'.c['Nation_id']=='$'.sel_nation){
echo'<option selected='selected'
value='$'.c['Nation_id']>'$'.c['Nation_name']</option>';
}
else{
print'<option value='$'.c['Nation_id']>'$'.c['Nation_name']
</option>';
}
}
}
?></select>";