SyntaxFix
Write A Post
Hire A Developer
Questions
If you have a big drop down. it's much easier to use jQuery with PHP.
This is how to do it:
<script> $(document).ready(function () { $('select[name="country"]').val('<?=$data[0]['Country']?>'); }); </script>