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