Hi,
I would like to try a redirect using my-functions.php.
How would I write it? If the user selects the checkbox #li-5-3 I want to route him to page A, and otherwise he will be redirected to page B .
My attempt goes like this:
[code]
if ( $setting == "redirection" ){
$userfield = $cformsdata['data'][$cformsdata['data']['$$$li-5-3']];
if ( $userfield == 'abc' )
return 'http://pageA.com';
if ( $userfield == 'def' )
return 'http://pageB.com';
}
[/code]
Obviously the userfield is for a dropdown menu but could it be used with a checkbox?
Thanks,
pilgrim2009.