|
Posted by yaaros on 06/26/07 14:26
On 26 Cze, 16:16, Willem Bogaerts
<w.bogae...@kratz.maardanzonderditstuk.nl> wrote:
> > $id_tmp = $_REQUEST["id"];
>
> This fails if there is no index "id", that is, if there is no id field sent.
>
> > if(!isset($id_tmp) && empty($id_tmp)){
> > invalidArgs();
> > echo "buug";
> > }
>
> This part will not be reached, because the code fails before this block.
>
> > ..., the page that suppose to is
> > showing but in file where errors are written (by error_logs), are
> > appeared errors of InvalidArgsException ?? That's really weird
> > because the script doesn't suppose to get into if-block and start
> > function invalidArgs().
>
> Best regards,
> --
> Willem Bogaerts
>
> Application smith
> Kratz B.V.http://www.kratz.nl/
I don't understand. I know that when the id parameter won't be send
the code fails. But when I send this field and everything is ok
watching on www page, but in error_log file there is an entry that the
InvalidArgsException was throwed, what is untrue because in that case
I couldn't see right www page on my browser, that means something is
wrong. And I don't know what :( ? Is anyone had that kind of problem ??
Navigation:
[Reply to this message]
|