hi all, i am getting the error
Notice: Undefined variable: vtxtEmail in e:\docs\moh\docs\mohgetnewsletter.php on line 359 Warning: session_destroy(): Session object destruction failed in e:\docs\moh\docs\mohgetnewsletter.php on line 386 " u can see it by the link http://www.moh.gov.om/mohgetnewsletter1.php. what could be the problem...... php version is php 4.3.3. pls help. i defined the variable by statement $vtxtFullName=$POST['txtFullName']; $vtxtEmail=$POST['txtEmail']; same code works fine on php version 4.2.3. thanx ckb
Notice: Undefined variable: vtxtEmail in e:\docs\moh\docs\mohgetnewsletter.php on line 359
Warning: session_destroy(): Session object destruction failed in e:\docs\moh\docs\mohgetnewsletter.php on line 386
"
u can see it by the link http://www.moh.gov.om/mohgetnewsletter1.php.
what could be the problem......
php version is php 4.3.3.
pls help.
i defined the variable by statement $vtxtFullName=$POST['txtFullName']; $vtxtEmail=$POST['txtEmail'];
same code works fine on php version 4.2.3. thanx ckb
It's not an error it's a notice put this in your code:
<?php error_reporting(E_ERROR); ?>
maybe you should read this
thanku so much ......now it's perfectly ok when i gave error_reporting.... thanx again ckb
Conversely, you could consider using [man]isset/man or [man]empty/man to actually deal with the notice, instead of suppressing it.