note 45616 added to ref.session
| From: | rsrilathamca at yahoo dot com | Date: | Mon, 13 Sep 2004 04:09:24 +0000 |
| Subject: | note 45616 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76575@lists.php.net to get a copy of this message | ||
Missing session values while using header().
I have a problem with the session values.
I am not getting the values of Session while using the Header
("location: third.php");
Sample Table should have
Corelabel--- Samlabel-----interval-----Age
============================================
CC1 -------- SA1 --------- 12 --------- 45
CC1 --------- SA2 --------- 89 ---------78
CC1 --------- SA3 --------- 67 --------- 76
I have the Entry form newsampledata.php
Sample Label :-----
Sample intervals:-------
Age:----
I have assigned $_SESSION["corelabel"]="CC1";
i am sending values to savesampledata.php
I have to save these data with a value $_SESSION["corelabel"].
means
<?php
insert into sample values($_SESSION['corelabel'],$HTTP_POST_VARS
['samlabel'],........);
?>
After insertion i am redirecting to same newsampledata.php to get
another sample values for same corelabel by
<?php
header("location:newsampldata.php");
?>
I am not getting value of $_SESSION["corelabel"] while redirecting
the file using header.
$_SESSION["corelabel"] is empty.
** Please help me regarding this **
Is there any problem in coding or in session setting in my system
i am working in local system
will it work when i upload this files
**Points :to access the session values while redirecting the file to
same page or to another age..*****
if i use the below statement in savesampledata.php
<a href="newsampledata.php">continue to submit another data</a>
This works fine....(but i don't want to confirmation or any link to
continue....
regards,
srilatha
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45616
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45616&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45616&report=yes
Search -- http://master.php.net/manage/user-notes.php