I am trying to redirect after form data has been inserted into a DB using the code below in the onAfterInsert Event.
// Redirection parameters
$redir_app = ‘/activation.php?email=’. {email}; // Application name
$redir_target = ‘_parent’; // Target window (_blank, _self, _parent or modal)
// Redirection
sc_redir($redir_app);
As you can see I am trying to pass a variable from the form called “email” to the activation.php script to have that variable available for the script for display. When I look at the request variables posted to the activations.php script the “email” value is set to “this->email” instead of the actual email address. The JSON encoded $_GET array is below:
{“email”:"$this->email",“nmgp_parms”:"",“nmgp_url_saida”:"/sc/form_registrations/form_registrations.php",“script_case_init”:“386”,
“script_case_session”:“plhot133i0q06pn8cimrhq77f2”}
Am I able to pass form variables like this to other URLs?