question about session
Moderator: General Moderators
session variable on website server
first value is local value and second one is master value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On
first value is local value and second one is master value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On
well I think we've narrowed it down to not being a session problem.
seems weird that you're getting some of the posted values across but not all of them. I did notice that you have some $_GET vars on there too...which leads me to ask, are you sure you're "posting" the form, which I'll answer myself, apparently so: since the print out of the POST array is showing information.
the printout seems to indicate that the values that are being passed are checkboxes, submits and / or radio buttons.
try adding another text field on your form and submitting it and see if you can echo its value.
I'm starting to draw blanks as to what your problem might be at this point. Could be some kind of register globals issue, but doesn't sound like it....
seems weird that you're getting some of the posted values across but not all of them. I did notice that you have some $_GET vars on there too...which leads me to ask, are you sure you're "posting" the form, which I'll answer myself, apparently so: since the print out of the POST array is showing information.
the printout seems to indicate that the values that are being passed are checkboxes, submits and / or radio buttons.
try adding another text field on your form and submitting it and see if you can echo its value.
I'm starting to draw blanks as to what your problem might be at this point. Could be some kind of register globals issue, but doesn't sound like it....
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Rajan,
In your original code you are using this HTML...
Try changing that to...
See if that passes the txtEmail data.
In your original code you are using this HTML...
Code: Select all
<input type="textfield" name="txtEmail">Code: Select all
<input type="text" name="txtEmail">- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
And try something with this...
Maybe along the lines of...
See if any of this helps.
Code: Select all
if(isset($_POST['hid']) or isset($_SESSION['email']))
{
$email=$_POST['txtEmail'];
if(!is_null($email))
{
$_SESSION['email']=$email;
}Code: Select all
if(!isset($_SESSION['email']) || isset($_POST['txtEmail']))
{
$email=$_POST['txtEmail'];
if(!empty($email))
{
$_SESSION['email']=$email;
}- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I can't believe nobody's said to put
at the top of the script 
Code: Select all
error_reporting(E_ALL);when i click use account it give following error message
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 227
Array ( [radiobutton] => 1 hours [Submit] => Use Account [prosel] => TRUE )
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 265
when i click on stop timer i get the following error message
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 265
i am tired to find the solution. can i make this on other way
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 227
Array ( [radiobutton] => 1 hours [Submit] => Use Account [prosel] => TRUE )
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 265
when i click on stop timer i get the following error message
Notice: Undefined index: txtEmail in /home/www/livepcdoctor.com/pcdoctor/operator/account1.php on line 265
i am tired to find the solution. can i make this on other way