Jump to content

nepal12

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nepal12's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks a lot. Actually it worked for me.
  2. Yes you are right but, I am actually not getting the result.
  3. Hi guys, I have an issue. First see the code. 1) index.php <html> <?php include 'header.php';?> <div class = "nav"> <ul> <li> Menu 1 </li> <li> Menu 2 </li> <li> Menu 3 </li> <li> Menu 4 </li> </ul> </div> <div id = "left-panel"> <ul class = "left-menu"> <li>Sub Menu 1 </li> <li>Sub Menu 2 </li> <li>Sub Menu 3 </li> <li>Sub Menu 4 </li> </ul> </div> <div class = "content"> <?php loadContent($config); ?> </div> <?php include 'footer.php' ?> </html> My Function is: function loadContent($config) { if(empty($_GET['action'])) { $_GET['action'] = "start"; } $root = "include/".$_GET['action'].".php"; if(file_exists($root)) { include($root); } } No if I press the Menu 1 in the nav class I will redirect to index.php?action=category&item=Menu1 My question is can I detect the $_GET['item']; in the index page and print it. If so how can I ? I want like : if (empty($_GET['item'])){ echo "No menu item selected"; }else{ $cat = $_GET['item']; echo $cat; } at the top of the page
  4. Hi guys, I need an urgent help from you profi . Take a look at this: <select name="cat"> <option id="opt1">Movie</option> <option id="opt2">Music</option> <option id="opt3">Television</option> </select> <select name="sub_cat"> <option id="s_opt1">Action </option> <option id="s_opt2">Adventure</option> <option id="s_opt3">Thriller</option> </select> The situation is so, I select movie in first select option , then it should store a variable $catagory and i could be able to search the database to populate the options in second select. That is , the selection of the first one should store a variable which when check in the database can list the subcatagory with the catagory selected, in above case, when movie as cat is selected then the subcat should contain the options with category movie. Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.