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
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

rajan wrote: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 :?:
Please post your new code (with all of the changes that have been suggested in this thread). An undefined index error is when you try to use an array variable that has not been set, like if I say that

Code: Select all

$email = $arrayVar['email'];
without first setting $arrayVar['email'] to something. You are probably getting this because the txtEmail variable is not receiving a value. Hence the reason I want to see your modified code. Please post the entire code. Thanks.
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

very very very very very very very very very thanks to u ur suggestion is solved my problem . but i can' undersatnd why is is fine at my local server
:lol:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Without comparing the two server configurations it is hard to say. Good luck in your completion of your project.
Post Reply