Re: [PHP] undefined index and php

2005-11-10 Thread Jasper Bryant-Greene
Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? That's because before the submit button has been pressed, $_POST is empty and so 'heading' is indeed an undefined

Re: [PHP] undefined index and php

2005-11-10 Thread ross
@lists.php.net Sent: Thursday, November 10, 2005 12:19 PM Subject: Re: [PHP] undefined index and php Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? That's because before

RE: [PHP] undefined index and php

2005-11-10 Thread Robbert van Andel
] Sent: Thursday, November 10, 2005 4:58 AM To: php-general@lists.php.net Subject: Re: [PHP] undefined index and php I have never really used this abreviated format before why the question mark and the colon? What is the long hang eqivalent. I turned magic quotes off too. thanks. R

Re: [PHP] undefined index and php

2005-11-10 Thread Jochem Maas
-general@lists.php.net Subject: Re: [PHP] undefined index and php I have never really used this abreviated format before why the question mark and the colon? What is the long hang eqivalent. I turned magic quotes off too. thanks. R. - Original Message - From: Jasper Bryant-Greene [EMAIL

Re: [PHP] undefined index and php

2005-11-10 Thread Gustavo Narea
Hello. [EMAIL PROTECTED] wrote: why the question mark and the colon? What is the long hang eqivalent. That's the Ternary operator. Whether you want to get further information, go to: http://php.net/manual/en/language.operators.comparison.php Regards. -- Gustavo Narea. PHP Documentation -

Re: [PHP] undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 5:54 am, Ross wrote: Before someone advises me to 'google' my question. I have and can't find a PHP.net example either. I have turned off registered globals and am updating my scripts so they work but I keep getting an undefined index problem using $_POST I tried