[FX.php List] FX Version

Troy Meyers tcmeyers at troymeyers.com
Sat Feb 28 08:33:21 MST 2009


Blair,

I'm not sure where I found this, but I've been passing parameters to scripts using this method, here are examples:

// Pre-sort
$ppw_add->PerformFMScriptPresort('WhatNewKeepSpS');
$ppw_add->AddDBParam('-script.presort.param',$userid);

// Pre-command
$ppw_add->PerformFMScriptPrefind('WhatNewKeepSpF');
$ppw_add->AddDBParam('-script.prefind.param',$userid);

// Post-command
$ppw_add->PerformFMScript('IPN post-command');
$ppw_add->AddDBParam('-script.param', $_POST['txn_id']);


-Troy


> This leads to my 2nd item. The ability to pass parameters to a script,
> thus making the script above dynamic and reusable for other searches.


More information about the FX.php_List mailing list