Jump to content

Recommended Posts

First off, I suppose I'm technically still a beginner at PHP, and I'm also brand new to this forum. I created a site, and now I'm working on version 2. Version 1 used frames, with drop-down menus on the left to search my database of products. For example, a "Color" menu with choices of "All Colors, Red, Black, Green, White." (where "All Colors" is the default). When using frames, you could select one of these colors, hit submit, and the products would show up on the right based on your selection. The drop-down menu would still show the selection that you made (because this frame didn't reload or refresh, only the target frame refreshed). Worked fine, but I've been instructed to use 'include' files instead of frames, so I'm working on V2 now.

Using 'include' files, the file that houses the drop-down menu now gets reloaded / refreshed each time I hit submit. So if I select "green" and hit submit, the table shows me the "green" items, but the drop-down menu is now reset to the default "All Colors." How do I get this drop-down menu to recognize what was selected and submitted, and show that in the drop-down when it is reloaded? My best example (not a website, but the same concept) would be in MS Word or MS Excel, when you use the 'drop-down' box to select a new font. When you select the font, the font you selected shows in the window until you change it.

Hopefully my long-winded question makes sense, and I hope someone here can point me in the right direction. Thanks for your time.

Todd
Link to comment
https://forums.phpfreaks.com/topic/10980-drop-down-menu-with-include-files/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.