View Full Version : Redirect after inserting a record

08-31-2009, 09:11 PM

How do I include a URL variable in my redirect after inserting a record.

I have a registration form with a radio group on it. Once the form is submitted I would like to redirect to my login2.php page, but also know what radio option was selected.

type is the filed in my form that holds the radio option value.

The code in bold is the code for the redirect.

When I try to send URL variables lt doesnt work.

Here is the error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\

// Register triggers
$ins_mymembers->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_mymembers->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_mymembers->registerTrigger("END", "Trigger_Default_Redirect", 99, "login2.php?email=$row_rsmymembers['type']");
$ins_mymembers->registerConditionalTrigger("{POST.password} != {POST.re_password}", "BEFORE", "Trigger_CheckPasswords", 50);
$ins_mymembers->registerTrigger("AFTER", "Trigger_SendEmail", 98);

Would really apreciate any help.


09-02-2009, 06:57 PM

I got it!!


Then use $radio = $_GET['type'];

on page.php