[FX.php List] RECID anomaly, more info

Leo R. Lundgren leo at finalresort.org
Sat Mar 8 12:22:58 MST 2008


7 mar 2008 kl. 17.27 skrev Bob Patin:

> I just double-checked the pages, and I can see in the form where he  
> passes the RECID in a hidden field, and then retrieves it in a  
> $_POST on the processing page.
>
> So it's not using a session variable at all, yet somehow, if the  
> page is left to fester for an hour or so, the value of the RECID  
> variable gets somehow forgotten...
>
> Very strange; I'm going to leave the form open in Firefox for 2  
> hours and see if it happens for me too...
>
> BP
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

Bob,

First make sure that you error_log("recId: {$_POST['-recid']") right  
before the call(s) that are doing the edit. Then do what you say, try  
to reproduce the problem. If you can, have a look at the error log.  
If it reports an incorrect recId you'll start debugging the code,  
while if it reports a correct recId I suppose you'll have to check up  
on FX or Filemaker.

To really know what's coming to your pages when the pages are posted  
you can instead log json_encode($_POST), which will give you a  
readable JSON string in the log. It's neat when you want to see a lot  
of information, and another upside is that you can copy and decode  
the logged string if you need to reproduce the same information at  
some point. Just a simple but useful tip.

-|



More information about the FX.php_List mailing list