Re: reason for a "Notice:.." on one site but not another? (Same code.)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 







On Aug 9, 2009, at 7:43 PM, John Butler <govinda.webdnatalk@xxxxxxxxx> wrote:

Hi sunday  coders,

I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not:



and it works great on that site.

But on another site it still works, but gives this error:
Notice: Undefined index: in /home/vs/site/phvs/bl/7solarsecrets/ admin/trackingcode.html on line 79

I assume that is because the error display settings are set to a more rigorous level in this latter site.
Is this correct?

(Both sites reside on servers where I am not the admin.)

------------
John Butler (Govinda)
govinda.webdnatalk@xxxxxxxxx




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You could also simply define / initialize the variable.

$UserWishesDateRange='';
if($_POST['UserWishesDateRange']) {  //--line 79
           echo'submitted';
       } else {
           echo'NOT submitted';
       }





Bastien

Sent from my iPod

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux