I want to search employee list depend on area name which is selected from dropdown list. I can retrieve names of areas from database into dropdown list from PHP HTML. But now I
To start, you would have to add a form tag and post the form to another php script.
Your selected option will be available in either $_POST
or $_GET
depending on the method used to send the form.
Example:
<body>
<form action="your_second_php_script.php" method="post">
// your code
</form>
</body>
And in your_second_php_script.php
:
<?php
var_dump($_POST);
?>
If you need the results to be available in the original page, you can use ajax to get that working, but I would start with the basics.