URL Link building

I am having issues with the field values building into the URL, The $redir_app feeds across just fine but the field values are not feeding. I am using this code on a button on a form. Any help would be appreciated. This is probably a simple mistake, but I can not see it or figure it out. I have commented the Jason _encode statement, not sure I need it.

// Redirection parameters
$redir_app=‘https://www.google.com/maps/dir/’; // Application
$redir_target=’_parent’; // Target Window
$redir_param=array( // Param list, add as many as needed
“address”=>"{address}",
“city”=>"{city}",
“state”=>"{state}"
);
//$redir_param=json_encode($redir_param);
sc_redir($redir_app,$redir_param,$redir_target);

Thank you in advance for any help.

Dr. Tim

Hello Dr Tim,

There you go (obviously ignore the first three lines as i added them for data)

{address}=“760 West Genesee Street”;
{city}=“Syracuse”;
{state}=“NY”;

$redir_app=‘https://www.google.com/maps?q=’;
$redir_target=’_parent’;
$redir_param="{address}.{city}.{state}";

sc_redir($redir_app.$redir_param,$redir_target);

Hello Scottypaul,

That worked great, still had problem with sc_redir parameter for $redir_target but I got it worked out just fine. I greatly appreciate your help you provided.

Thank You