Below script is to show errors in PHP, the error_reporting function will show all the error.You have to initialize at the start of PHP tag.
PHP
Simple PHP Dropdown Menu Example
<html> <title>PHP Dropdown Menu Example</title> <head></head> <body> <form method=”POST” action=”phpdropdown.php”> <select name=”user”> <option value=”vivek” selected=’selected’>Vivek</option> <option value=”Raj”>Raj</option> <option value=”Vicky” >Vicky</option> </select> <input type=”submit” name=”go” value=”Go”> </form> </body> </html> <?php if(isset($_POST[“user”])) { $user = $_POST[“user”]; echo $user; } ?> To get selected value use this < option value=”vivek” selected=’selected’>Vivek </ option> Use this at top for […]