This topic is locked

Go to Export page upon tick box being ticked

3/28/2011 5:56:14 AM
PHPRunner General questions
S
swanside author

Hi there.

On my job_add page, I have a tick box called Eported.

If this box is ticked, how can I upon pressing the save button, go to export that record that has just been added?

Thanks

Paul.

J
Jane 3/29/2011

Hi,
to redirect to the export page useAfter record added event and Redirect to another page action on the Eventstab.

Pass ID of added value in this URL:

header("Location: tablename_export.php?recordid=".$keys["FieldName"]);

Then check this value and add it to the WHEREstatement in the Export page: Before SQL query event:

$strWhereClause = whereAdd($strWhereClause,"FieldName=".$_REQUEST["recordid"]);