What’s wrong with my code. It display the followin error message in the drop-down field:
Fatal error: Call to undefined function option_selected() in PHP in C:\xampp\htdocs\imageconcert/index.php on line 27
Here’s the code:
<?php if (isset($_GET["target"])) { function option_selected($target, $value) { $v=$_POST[$target]; if ($v == $target) { $selected="selected"; } echo $selected; } } ?>Ezen az oldalon JPEG, PNG, BMP vagy GIF fájlt tudsz konverálni!
Forrás fájl (jpeg,png,bmp vagy gif, max. 2MB):Célfájl formátuma <?php echo option_selected("target", "JPEG"); ?>> JPEG <?php echo option_selected("target", "JPE"); ?>> JPG <?php echo option_selected("target", "BMP"); ?>> BMP <?php echo option_selected("target", "GIF"); ?>> GIF <?php echo option_selected("target", "PNG"); ?>> PNG