Bind array into select option dropdown in php using foreach loop

preview_player
Показать описание
php tutorial on bind array elements into html element select option dropdown control using foreach loop
Рекомендации по теме
Комментарии
Автор

Awesome man! I have a similar solution to a menu nav like this:-<?php
$menu_items = array(
'index.php' => 'Home',
'travel.php' => ''Travel',
'contact.php' => 'Contact'
);
foreach($menu_items as $key => $item) {
echo "<p>The key is: $key and the value is: $item</p>";
}
?> but having problems with html display!! i think i need use <ul> </ul> but where?

dibraniuk
Автор

how to post this data to another page ?

devsaxena
welcome to shbcf.ru