Jump to content

Aizen06

New Members
  • Posts

    6
  • Joined

  • Last visited

Aizen06's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I started learning java script last night, and I've figured it out. Here's the solution to what I was trying to achieve. http://liveweave.com/RGpVcU The select solution does work, but I needed something that I can add sub items to, and since this is something that will be on the nav bar, I just wanted to give it a clean look as oppose to creating more select drop down list after selecting an item. Thanks for all the help guys, I really appreciate it.
  2. thanks for answering, but I don't think you quite get what I'm trying to say here. I completely understand how sessions work, but how exactly is the varriable 'category' set when the user clicks one of the categories? If I'm a user and I click on a category, then what exactly will trigger this line of code? I've created a drop down menu using list and css for both location and category. I could use drop down box for categories, but for location it can get a little messy since it will have sub items. For example, Province will be Ontario then City names and so on. To make things more clear, I'm using a list that shows sub items when user hover mouse over. Location Ontario - > Toronto (hover shows this option) That's something I can't do in drop down list <select>, right? If it's not too much to ask, then can you please show me in few lines how you're going to save the category once it is selected.
  3. I've looked into sessions, and that will work for saving the variables, but how exactly am I suppose to set the variable when one of the options are selected? They're all links btw. e.g <a href src="#">location</a>
  4. basically, is there a way I can set php variable through a link. <a href src="">stuff</a> I have created drop down list for Category and Location that user can hover their mouse over and it shows the options. Is there a way to set a variable for the option they select. e.g Location -> New York which will set the location varible to $location = 'new york';
  5. Hi guys, I want to find the most efficient way of setting a php variable through a link. What I'm trying to achieve is to allow the user to select a category and their location and store the two variables to update my database results. I first used the GET method, but since the page refreshes when the user selects any other Get variable, so it ends up reseting the variables. Currently I have the category and locations as drop down menu with links to each of the options. I'll appreciate any help. Thank you. :]
×
×
  • 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.