question about session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

$_POSt[email] is also not show the value. i think it is also not need
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

ok and the print_r of the array?
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

Array ( [radiobutton] => 1 hours [Submit] => Use Account [prosel] => TRUE
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

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....
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

my question what the cause of same program is running on my localhost well but on live website there is a problem. my dear
Burrito
u couldn't catch the actual problem
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

rajan wrote: my dear
Burrito
u couldn't catch the actual problem
nope I could not....
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

rajan wrote:Array ( [radiobutton] => 1 hours [Submit] => Use Account [prosel] => TRUE
Is this the complete print_r of the POST array? It doesn't seem like it is closed.
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

not solved wrote:my question what the cause of same program is running on my localhost well but on live website there is a problem. my dear
Burrito
u couldn't catch the actual problem
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

i have give all information completely . i am tired to give infornation but not find any solution
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Rajan,

In your original code you are using this HTML...

Code: Select all

<input type="textfield" name="txtEmail">
Try changing that to...

Code: Select all

<input type="text" name="txtEmail">
See if that passes the txtEmail data.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

And try something with this...

Code: Select all

if(isset($_POST['hid']) or isset($_SESSION['email']))
    {    
        $email=$_POST['txtEmail'];
        if(!is_null($email))
        {
            $_SESSION['email']=$email;
        }
Maybe along the lines of...

Code: Select all

if(!isset($_SESSION['email']) || isset($_POST['txtEmail']))
{    
    $email=$_POST['txtEmail'];
    if(!empty($email))
    {
        $_SESSION['email']=$email;
    }
See if any of this helps.
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

no it does not help .
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I can't believe nobody's said to put

Code: Select all

error_reporting(E_ALL);
at the top of the script :?
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

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 :?:
Post Reply