|  | Posted by Auddog on 10/31/06 23:55 
Thanks for all the help.  That's what was causing me the problems.  I knew it was something that I was over looking.  I should have looked at the form
 to see the POST command.  Thanks for showing me the _REQUEST superglobal.  I
 checked that one out also and will start looking to use it.
 
 Thanks again.
 
 A
 
 
 "Pedro Graca" <hexkid@dodgeit.com> wrote in message
 news:slrnekfkdb.492.hexkid@ID-203069.user.individual.net...
 > 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] |