I am trying to pass the "aid" value of the inserted record to the redirect for the next page. Nothing gets passed for the aid value but the correct info does get passed for fields from the form. I have tried several different options for the URL parameters
i have tried
tourn_id={var:aid}
test={data:abbreviation}
the resulting URL is ../create-tournament-division?test=MAAC18
(no sign of the tourn_id parameter)
then if I set them to:
tourn_id={data:aid}
test={data:abbreviation}
the resulting URL is the same ../create-tournament-division?test=MAAC18
which is what I expect since I believe the aid is part of the var array.
Thanks for any help you can provide.
here is the debug
i have tried
tourn_id={var:aid}
test={data:abbreviation}
the resulting URL is ../create-tournament-division?test=MAAC18
(no sign of the tourn_id parameter)
then if I set them to:
tourn_id={data:aid}
test={data:abbreviation}
the resulting URL is the same ../create-tournament-division?test=MAAC18
which is what I expect since I believe the aid is part of the var array.
Thanks for any help you can provide.
here is the debug
Array ( [validate_fields2] => Array ( [log] => Automatic validation enabled. [var] => 1 ) [save_data3] => Array ( [data] => Array ( [created] => 2018-02-26 18:09:40 [user_id] => 623 [tournament_name] => MAAC 2017-18 [description] => MAAC 2017-18 [abbreviation] => MAAC18 [active] => 1 ) [_success] => Data saved successfully [log] => Array ( [0] => INSERT INTO `LO_Tournaments` (`created`, `user_id`, `tournament_name`, `description`, `abbreviation`, `active`) values ('2018-02-26 18:09:40', '623', 'MAAC 2017-18', 'MAAC 2017-18', 'MAAC18', '1'); ) [var] => Array ( [created] => 2018-02-26 18:09:40 [user_id] => 623 [tournament_name] => MAAC 2017-18 [description] => MAAC 2017-18 [abbreviation] => MAAC18 [active] => 1 [aid] => 30 ) ) )