undefined index and php

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

 



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 this to set the value...

if (!isset($_POST['heading'])) {
$_POST ['heading'] = "";
}

because the following line give the notice 'undefined index'  BEFORE  the 
submit button has been pressed..

<? $heading_insert= stripslashes($_POST['heading']);?>

R. 

-- 
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