Jump to content

how to retain dropdown list value


mypopy

Recommended Posts

Well, for instance in this line where you are checking to see if you will set selected or not:
[code]if (($Data['province_id']==$Rw['Province_ID']) || ($Rw['Province_ID']==$ProvinceID))[/code]

I am assuming the $Data array is obtained by the z3.php page that is included at the top of the page - otehrwise I don't know where the $Data array is coming from.

Then the $ProvinceID NEVER has a value so why are you including it in the function? You set $ProvinceID to NULL in the function head if no 2nd paramter is passed to the function and you have no calls to the function with a 2nd parameter.

So, you need to ensure you are passing the proper data to the function so that it is checked against that conditional.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.