I have a tabbed panel.I want to open on tab 1 details of link.For example, Navigation builder provide us page 1-2 3 on same page.like navigation builder, when users click the link it should show details on same page.( demo.php?details=link )
is it possible?
By the way, I am using SpryUtilis for each tab.(demo.php?tab=1)
Firstly, Thanks for reply.I figured out about tabs url.No problem.But i want to build message box(inbox,outbox) on a tab.When i click message title in inbox or outbox, i need see message detail same page.My problem is as i said.Have you any idea?
i found this tutorial.But i have already myprofile?tab=0,1,2 url additional.in this tutorial too it' addin url's end "?navig=home".How will be mine? is it look like: myprofile.php?tab=2?navig=home.Is it possible?Please help me.
In general, a menu is a list of items. A menu is presented as a group of audible choices to which the user can respond by pressing a button or speaking aloud. A menu is a group of options presented to the user of a computer to help the user get information about any program or application. Menus are commonly used in graphical user interfaces such as Windows.
The item of a menu is like the point on the map that says "you are here".
A menu is a set of commands or options from which you can select your choice. You can select an item from the menu by highlighting it and then pressing enter or by simply pointing to the item and clicking the mouse button.
There are many types of menus, some of them are:
A dynamic menu with scrolling color glide following is appropriate for a personal entertainment blog and a website which requires new fashioned style and personalization.
First of all we will create menu.php file.
function menu_item ($id, $title, $current)
$class = ($current == $id) ? "active" : "inactive";
function page_menu ($page)
<?php menu_item ('Home', 'Home', $page); ?>
<?php menu_item ('About', 'About', $page); ?>
<?php menu_item ('Browse', 'Browse', $page); ?>
<?php menu_item ('Download', 'Download', $page); ?>
<?php menu_item ('Contact Us', 'Contact Us', $page); ?>
The above file is to be saved with the name menu.php, which will be called from the index.php file later.
Now we will create another file in PHP, named index.php. In this file the menu.php file is called.
$page = isset($_GET['page']) ? $_GET['page'] : 'Home';
<title>Page - <?=$page?></title>
padding:2px 2px 2px 20px;
<h3><u>Dynamic Navigation Menu</u></h3>
<td width="200" valign="top">
<?php page_menu($page); ?>
<td width="600" valign="top">
When you will browse your index.php file then you will get the following image. When you click on home then the background of the home will be red and the message "Page : Home" will be printed.
When you click on about then the background of about will be red and the message "Page : About" will be printed.
In the same manner, when you will click on browse, download or contact us then the background of these items will be red and "Page : Browse", "Page : Download" or "Page : Contact Us" respectively, will be printed.
So in this article you saw, how to create a dynamic navigation menu in PHP. Using this article one can easily understand the concept of a dynamic navigation menu in PHP.