开发者

Php GET notice problem

开发者 https://www.devze.com 2022-12-08 15:32 出处:网络
Calling \"index.php?pConta=1&pDataInicial=01-01-2000&pDataFinal=31-12-2000\" I get this notices:

Calling "index.php?pConta=1&pDataInicial=01-01-2000&pDataFinal=31-12-2000" I get this notices:

[08-Oct-2009 17:30:35] PHP Notice:  Undefined index: pConta in index.php on lin开发者_如何学运维e 1
[08-Oct-2009 17:30:35] PHP Notice:  Undefined index: pDataInicial in index.php on line 2
[08-Oct-2009 17:30:35] PHP Notice:  Undefined index: pDataFinal in index.php on line 3

index.php source:

<?php
    $conta = $_GET['pConta'];
    $dtIni = $_GET['pDataInicial'];
    $dtFin = $_GET['pDataFinal'];
?>

And the "var_dump($_GET)" shows me following:

array(3) { ["pConta"]=> string(1) "1" ["pDataInicial"]=> string(10) "01-01-2000" ["pDataFinal"]=> string(10) "31-12-2000" }

And $conta, $dtIni and $dtFin have excepted values.


I found the problem! I'm using xajax (an ajax php library) and it was calling the url without params.

0

精彩评论

暂无评论...
验证码 换一张
取 消