This topic is locked

Event : AddOnLoad(&$params)

11/28/2007 5:47:39 AM
PHPRunner General questions
R
rockrockers23 author

1.) HI... Im new for phprunner .. I redirect my ADDNEW page to another ADDNEW page to MAKE USE of THE ENTRIES of the first page for computation....

Now,,,. How can i make use of the first page entries (value) before I redirect to another page and Load the computed values to the FIELDS for display BEFORE im going to save it.

2.) How can i use the &$params .. i mean what values are stored on &$param>?

J
Jane 11/28/2007

Hi,
you can save calculated values in the $_SESSION variables and then use these variables as default values (on the "Edit as" settings dialog on the Visual Editor tab) on the second Add page.

Here is a sample for After record added event:

$_SESSION["value1"]= $values["FieldName"];

$_SESSION["value2"] = $values["FieldName2"];
//** Redirect to another page ****

header("Location: anypage.php");

exit();