You are here: Re: newbie form help « PHP Programming Language « IT news, forums, messages
Re: newbie form help

Posted by Pedro Graca on 10/31/06 23:17

Auddog wrote:

First of all, thank you for posting the code.
It's appreciated.

> When I run the page(s) I get the following error:
>
> Notice: Undefined index: board_no in
> c:\Inetpub\wwwroot\production\process_order.php on line 3 (which is $bn =
> $_GET['board_no'];)
>
> Not sure why I'm having troubles with this. Any help would be greatly
> appreciated. Thanks.

This means that the superglobal array $_GET does not have an index named
"board_no". The method you specified for the form is POST, so PHP will
populate the superglobal array $_POST.

If you replace your
$bn = $_GET['board_no'];
with
$bn = $_POST['board_no'];
it will be ok (hopefully).

Or you can use the $_REQUEST superglobal array instead and not worry (*)
about whether user data comes from GET, POST or COOKIE.

(*) Or, to put it another way:
Or you can use the $_REQUEST superglobal array instead and always worry
about whether the data comes from GET, POST or COOKIE :)

--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.

 

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

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