473,395 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Sessions, and passing data to another page

18
hi guys,
i'm building a web site where i have a lot of pages, in the default page i'm having a menu in this menu i have a callendar a drop down list, in the callendar i need to remember the date selected by the user and for the drop down list i have to remember the value selected by the user, these values i need them to query the database.the first time it works great the selected item in the drop down list can be read by any other page(in different pages i'm taking these values and displaying different graphs and table) but when i change the selected value in the drop down list in the default page, it does not change for the other web pages. i was thinking of storing the whole page in a session, but i do not know how to implement this. or may be you have some other suggestions so when i change the value in the default page it will also passed to the any other page i need and then the change the values for these pages.

any help will be very appreciated.
it is realy starting to annoying me ;(

thanks
Mar 13 '07 #1
2 1513
kenobewan
4,871 Expert 4TB
If you are storing the information in the database, I don't believe that you need to store it again. Connecting to the database in the other pages should be sufficient. If they are still displaying the old data, check your use of postback in the page load.
Mar 14 '07 #2
mrjoka
18
thanks for the post, first of all i'm not using a database. second i have a postback in my program, this is what i have:
if (!IsPostBack) { } in the load page and if i take it off from the program then if i select a value from the drop down list it is not there when the page refresh, it will return the initial value and if i add the postback again then the vale selected from the drop down list will be remebered when the page refreshed.
any suggestion?!!!
thanks
Mar 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
5
by: Stephen Poley | last post by:
I'm trying to understand sessions and authentication. I gathered that the only way of preserving data across script invocations was to use a session. However I note that $_SERVER and $_SERVER...
5
by: leegold2 | last post by:
Probably a newbie question about "state": My problem is I have a search form, so user enters a keyword <enter>, then this form posts to another page were the result are displayed. But this...
22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
2
by: dmcconkey | last post by:
Hi folks, I have two PHP questions concerning objects stored in sessions. I'm developing an intranet for a client to be run in a Redhat 8/Apapche 2/PHP 4/MySQL environment. All pages are...
10
by: Mark H | last post by:
Hey all-- I'm building a database and I basically need to keep out people who aren't authorized, but it's not like I need top security here. I'm just doing basic user/pass of a SQL database, and...
6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
13
by: G | last post by:
Hello, Is it possible to send form values from PAGE1 to PAGE2, and then retain the form info for PAGE3 without using cookies, sessions or DB storage? Also, I dont want to repost page2 to page3...
6
by: Mehdi | last post by:
Hi, In my asp.net (C#) application I use javascript(i.e window.open('/MyApplication/home.aspx?userid=345', '', '')) to open another copy of my application in a new window. In global.asax I...
13
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.