Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8376

Re: LINKING A PHP FILE WITH <li> MENU OPTIONS...

From JohnT <john@example.com>
Newsgroups comp.lang.php
Subject Re: LINKING A PHP FILE WITH <li> MENU OPTIONS...
Date 2013-02-15 15:46 +0000
Organization A noiseless patient Spider
Message-ID <kfll9b$p4n$1@dont-email.me> (permalink)
References <aa02a6fa-2d7e-45bf-8836-d71e49f63209@googlegroups.com>

Show all headers | View raw


On Fri, 15 Feb 2013 07:35:33 -0800, Nagaraju Kachapuram wrote:

> Hi all,
> 
> I  have created a cascading menu like following and of course new to php
> and mysql... the main.php file will fetch data from a mysql database...
> 
> 
> <ul id="nav" style="float:left; clear:both;" name="citycode">
>   <li><a href="#"><b>City List</b></a>
>     <ul>
>       <li value="398A" ><a href="main.php">BEEJING</a></li> <li
>       value="125B" ><a href="#">NEWYORK    </a></li> <li value="734C"
>       ><a href="#">ADELLAIDE   </a></li> <li value="859D"><a
>       href="#">MELBOURNE </a></li>
> </ul>
> </li>
> 
> My problem is when I click on the city list it wil open main.php
> according to the city value code.  But the above code is opening a blank
> main.php file with headers. How to change the above to accept the city
> code to open main.php

You need to add the city code to the URL:

       <li value="398A" ><a href="main.php?citycode=398A">BEEJING</a></li>


JohnT

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

LINKING A PHP FILE WITH <li> MENU OPTIONS... Nagaraju Kachapuram <visitnag@gmail.com> - 2013-02-15 07:35 -0800
  Re: LINKING A PHP FILE WITH <li> MENU OPTIONS... JohnT <john@example.com> - 2013-02-15 15:46 +0000
    Re: LINKING A PHP FILE WITH <li> MENU OPTIONS... nag <visitnag@gmail.com> - 2013-02-15 10:26 -0800

csiph-web