You are here: Undefined Index notices « PHP Programming Language « IT news, forums, messages
Undefined Index notices

Posted by Craig Morrison on 06/08/06 22:50

I'm getting this:

[client 192.168.5.50] PHP Notice: Undefined index: D1 in
/var/www/html.....

From this line of code:

$id_option = $_POST['D1'];

Which is posted by this:

<form target="_blank" method="POST" action="mailchart.php" name="mail_data">
<input type="hidden" name="D1" value="<? echo $id_option; ?>">
<input type="submit" value="View Chart"></p>
</form>

My question is why?

I *am* getting the correct value for $_POST['D1'] and at this point in
time am really quite confused because that notice is getting thrown.

[root@... ~]# php -v
PHP 4.3.11 (cgi) (built: Nov 8 2005 06:24:40)

[root@... /]# uname -a
Linux ... 2.6.12-2.3.legacy_FC3 #1 Sun Feb 19 10:47:10 EST 2006 i686
i686 i386 GNU/Linux

Thanks..

Craig

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация