473,807 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

store session values in same page using php.

1 New Member
I have 10 php pages, each page containing ten fields approximately. When I navigate from one page to another page like nextpage>>> & previouspage<<< . How can I store the field values using sessions in php, when he fill first page and select link next page and coming to previous page.
Dec 13 '10 #1
1 3842
dlite922
1,584 Recognized Expert Top Contributor
If you want to store form fields in session, the form must be submitted first using Get or Post methods. Once you store these in $_SESSION you can redirect using header("locatio n: nextPage.php");

Dan
Dec 14 '10 #2

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

Similar topics

10
2825
by: Joseph S. | last post by:
Hi, How do I pass a string from one call to a php block to another call in the same page but from another form? Here's my full php code: I'm using two forms in the same page. A hidden field 'f' with values '1' and '2' are used to distinguish calls from one form from those from the
0
1292
by: Geoff Cox | last post by:
Hello, I am trying to get the code below to use formmail-nms.cgi to send the thanks.htm response to the same page using target="_self" but this isn't working - any idea why? Thanks Geoff
1
1412
by: Eric Caron | last post by:
Hi, In a typical "show-list-click-one-and-edit" scenario, I use a DataGrid on the "list" page using the pager option. Say I'm on page 2, click edit on an item and click Cancel on the edit page (which is another web form), what would be the ideal way to return to the same page in the list? I would have to store the page number in my request I suppose? On a similar topic, is there a way to obtain the familiar PageCount properties from...
2
3382
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings for the web site are held in a database and all the labels, buttons etc are populated at run time in the Page_Load handler. The retreval of the strings from the database is all
9
2550
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings they have "Always allow session cookies" set to true When the browser connects to the website the first page sets a session variable called "user_ref" to something and then calls another page. If on
8
4234
by: savvy | last post by:
I have a javascript menu navigation. I have some session values which regularly get updated, but when i navigate using this Javascript menu to a different page i'm not able to see the updated session values where I actually need them, i will be getting only the old ones. And when i refresh the page i can see the new values. Is there is way to get around this problem? Can any one help please?
1
2490
by: glady | last post by:
Hi, I would like to have a php form that gets input from user and display data if they have already entered for that particular record in the same form. For example, if i have a form with 20 fields, if the user already entered 5 (values)field, then it should retrieve 5 values in form as read-only format and remaining 15 fields should be empty to get input from user. This time if user enters 3 values, next time if the user open the ...
3
1648
by: newladder | last post by:
Helllo Friends, Iam unable to store the session values. I have a page checklogin, which checks for username and creates session for that username then redirect to user homepage. Before redirceting to homepage it stores the session but after redirecting the session is empty. I have other application which is working fine. Any help would be appreciated...
3
1957
by: Sylvie | last post by:
When redirecting a page, For example CASE 1; Response.Redirect("Page.aspx?Paramval=123"); in Page.aspx
0
9720
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10374
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
10112
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
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
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3
3011
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.