homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Dropdown filter box issue in php
dropdown filter box not working

Msg#: 4532605 posted 8:28 pm on Jan 2, 2013 (gmt 0)

Hi all,

I am working on adding a dropdown box in a php page which displays data from MySQL table, so that selecting an option in that dropdown box will run a query in the PHP page and display only certain data in the page, i.e., the dropdown box will act as filter box. But the PHP pages are reached only through logging in, and each of these pages start a session when they are run.

Initially I made a simple task of just echoing a message when a dropdown box option is selected, eg., when I select "Windows" from the dropdown box the php page will print/echo "Windows". But this didnt work and after trying several things, I saw that it echoes the option as expected, only when I comment out the "session" syntax, and I goto the PHP page without logging in it, i.e., without going to the index page of the website and logging in it, if I goto the expected page directly then the dropdown box echoes the expected message properly.

So without initiating a session this works, and I need to find a way to display the expected things in the page even after using "session" in it and logging to it. Please let me know if you need any more information.



WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4532605 posted 6:44 pm on Jan 4, 2013 (gmt 0)

Welcome to WebmasterWorld, beginner101.

It sounds like you are getting an error some place that is causing your code logic to work unexpectedly. Have you looked at your errors to see what is happening?


5+ Year Member

Msg#: 4532605 posted 1:49 pm on Jan 8, 2013 (gmt 0)

with a bit of code you did it would be easier for us to help you! Because with what i read it seems that you're close to the solution!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved