hello to all;
I'am newbie to PHP and needed to all php master,
Please help me to make this code funtionally working,
her is my code that i mean to
<form id="myProvince" method="get" action="index.php">
<select name="select" style="width:200px" onchange="myProvince()">
<option value="all">Province</option>
<?php
$ByProvinceToShow=province::getByProvince($select);
if (!isError($ByProvinceToShow)) {
foreach ($ByProvinceToShow as $element => $value) {
$GetbyProvince=province::getForProvince($province);
echo '<option value="<ahref="index.php?menu=province&province='.$value->Province_id.'&select='.$value->Province_index.'">[/url]';
echo ' selected="selected"';
echo '>'.$value->Province_name.'</option>';
}
}
?>
</select>
<input type="hidden" name="menu" value="province"></input>