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

Home Posts Topics Members FAQ

Transferring the POST content from one page to another

Is there an easy way to transfer a page POST content to the next page?
Right now I read out the POST content in the PHP script and put it in a
html form (with POST as content type) as a hidden field, but I am
wondering if there isn't a nicer solution to do this. I need this
functionality so that the user is able to re-login if for some reason
his/her session got lost. This happens every now and then when the user
is completing a form and hence the need for re-submitting the form data
after logging in again. The form also contains arrays, so I have to
iterate through all of them which is okay, but I assume that there is a
much nicer and cleaner way to do is, I just have not found it yet so I
need your help.

Thanks in advance,
cj.

Jul 16 '05 #1
2 3297
On Mon, 28 Jul 2003 10:11:21 +0200, CJ Oxx wrote:
Is there an easy way to transfer a page POST content to the next page?

[snip]

If you already have a form that the user is filling in, then hidden form
fields might still be the best way to go, assuming they don't contain any
'sensitive' data. Given that your problem seems to be sessions expiring
while waiting for user response, you might also want to look at storing
session info in a database, to restart sessions when people log in again.
Jul 16 '05 #2
Steve wrote:
On Mon, 28 Jul 2003 10:11:21 +0200, CJ Oxx wrote:

Is there an easy way to transfer a page POST content to the next page?


[snip]

If you already have a form that the user is filling in, then hidden form
fields might still be the best way to go, assuming they don't contain any
'sensitive' data. Given that your problem seems to be sessions expiring
while waiting for user response, you might also want to look at storing
session info in a database, to restart sessions when people log in again.


Indeed, there is already a form present in the shape of the login form
where I can add hidden fields to.

I am wondering how a custom session handler (by making use of the
database), can solve my problem. The problem I am experiencing atm is
that for some users, the session cookie on the server side gets deleted
after a while (I for one have yet to experience it). I have been able
to narrow it down to the server side since using SID instead of client
side server cookies does not have any effect. I have read about
problems like this happening to other PHP users, but nobody seems to
have a solution for it (my hosting company uses PHP 4.1.2, so if there
would be any bugfixes in new PHP versions, I sadly can not make use of it).

If I would use the db for session management, I will need to create a
cookie on the user side which identifies the session. However, I would
like the site to work also in places where cookies are disabled, so I
would have to come up with a replacement for SID as well I suppose (the
platform needs to be used in an educational environment where strict
cookie rules often apply). But if the link between the DB and the end
user gets broken for some reason, I still need a similar mechanism to
re-post the POST content, don't I... On the other hand it will be very
unlikely for this to happen since you are able to control the session
management better. I do use objects in my sessions (I have written some
OO form classes which are stored in the session itself) and am a bit
afraid of possible problems with serialising objects in the DB (just
because I have never done it).

Anyway, these are my thoughts on this, I would very much like a response
on this since I find it a very interesing matter.
Jul 16 '05 #3

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

Similar topics

2
12534
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
2
1535
by: Rani | last post by:
hi guys I don't know if this is the right place for it but I created 2 pages in page one there is a text box in which the user enters his name, in page 2 there is a the same text box. I would...
15
5060
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
0
3859
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
9
1665
by: Stimp | last post by:
I'm trying to copy an asp.net project onto another computer in order to work on it from there as well. Whatever way I set up the directory in IIS the project cannot be run on the new computer (I...
2
3106
by: keeps21 | last post by:
I have a script that recieves an id number via the address bar when a link is clicked. ie . index.php?id=1 if the link was for the story whose ID is 1. My script checks if a user is logged in,...
56
7177
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
3
3527
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
1
1417
by: =?Utf-8?B?Z29sZGVucmF0ZQ==?= | last post by:
Hi everyone, I have a client who wants a solution for the following problem. I'm not sure that its possible but I'll ask anyway. The client has joined godaddy's reseller plan. They've provided...
0
7109
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...
1
7029
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
7481
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
4702
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...
0
3190
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.