473,738 Members | 10,643 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php dynamic menu generation

Hello,
I've got a situation, where i'd like to have a selection box of
products. The user picks one product, and a menu appears doesn't activate,
but it shows some more detail regarding the product, say a car, and the
detail is a list of years you could pick. You pick the year and a list of
color choices appears, so on and so forth until you either select a choice
in which a database query is generated and you get a page or you get a page
listing all close parts. I was wondering if this was feasible without
clientside javascript, i don't like to rely on client side scripting as not
all user's utilize it.
Thanks.
Dave.
Jul 17 '05 #1
1 1840
If you want this done by PHP you will have to submit the form after each
selection so that the PHP script can detect what was selected and offer the
next set of options.

I personally would not do this in a single form. I use what is known as the
"waterfall effect" as is demonstrated in my sample application. Read about
it at http://www.tonymarston.co.uk/php-mys...plication.html

--
Tony Marston

http://www.tonymarston.net

"dave" <dm*******@woh. rr.com> wrote in message
news:A3******** *********@fe1.c olumbus.rr.com. ..
Hello,
I've got a situation, where i'd like to have a selection box of
products. The user picks one product, and a menu appears doesn't activate,
but it shows some more detail regarding the product, say a car, and the
detail is a list of years you could pick. You pick the year and a list of
color choices appears, so on and so forth until you either select a choice
in which a database query is generated and you get a page or you get a
page
listing all close parts. I was wondering if this was feasible without
clientside javascript, i don't like to rely on client side scripting as
not
all user's utilize it.
Thanks.
Dave.

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4777
by: Eddie de Bear | last post by:
Hi, A project I am working on has a requirement for dynamic menus. For the most part this works really well. The menus I'm creating a based on files and directories, so naturally the menu creation takes some time. The approach I took was to override the OnSelect method of the MenuItem class, which had code to populate the
2
1762
by: vikram | last post by:
I have to design a page which contains a dynamic generated menu at left side.Menu will be generated once a user log in and will remain as it is for the rest of the user session. Problem is that due to client requirement i have to avoid using frames and hence menu and the page will be a single page. So is there is any way by which the left hande side menu block can be cached someway so that dynamic generation can be avoided each time...
6
1787
by: aroraamit81 | last post by:
Is there any way by which I can create a dynamic database driven Menu using ASP.NET/C#...... Thanks Amit Arora
0
1143
by: Sri Reddy | last post by:
Hi I want to create a horizontal menu on my website being built using asp.net2 with menu items based on the "role" of the user who logged into the system.Role iformation will be read from database... For ex: for a user with "Admin" role, i would like to show "Menu Item1", "Menu Item2", "Menu Item3", "Menu Item4". Where as if the user belongs to "Help-desk" role, i would like to show only "Menu Item1" and "Menu Item3"...
3
4793
by: RahimAsif | last post by:
I am writing an application that requires the a portion of the main menu to be dynamic. The menu has file, panels, view files and help across the top. The view files sub menu needs to be dynamically generated, and the dynamic generation needs to occur right when the user selects this menu item (that is on the Popup event handler). However, everytime I put following code on the Popup event handler (of the View Files menuitem) to dynamically...
2
3078
by: Ghada Al-Mashaqbeh via DotNetMonster.com | last post by:
Hi all, I am facing a problem in dynamic code generation at run time, the problem occurs when the dynmaic code use global data exist within the original application. Lets say that my application is called "Dynamic Code", so the name space in my project is "Dynamic Code", I have created "Form1.cs" where my code exist. Form1 class contain a global class "xarray" with static memeber "x" which is an array, I want the added dynamic code by...
5
3176
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But querying a database, negotiatinig lots of if-then-else logic and echo'ing html code out on port 80 every time a page is requested has to be a huge waste of resources. Why not use that logic to print static html instead of dynamic?
3
2040
by: drblitzkrieg | last post by:
Hi, I have a page with 2 drop-down menus. The task is, when you select 1 menu, your selection then changes the options available in the other. This data happens to be drawn from a mysql database, so I wouldn't think that it could be done purely in Javascript, but rather a combination of PHP generating some JS code. Thing is, I don't even see how to change a set of menu options with JavaScript, only names and values of individual fields. ...
3
3015
by: =?Utf-8?B?ZWFndWlsYXI=?= | last post by:
Hi, I am trying to dynamically generate a menu, based on entries on a text or xml file. The text file contains the "tree" after which the menu will need to be created. Something like the following: Level 1 -- Level 2 -- Level 2 Level 1
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.