Please replace the ??? with your data!
- URL to the FORM: Password Protected, but I can open it up.
- The browser used: Opera
- cforms version: Latest as of today.
- Your Wordpress version: 2.9.1
[desc]:
Hi There,
I Love Your Plugin, It Looks Like It May Solve All My Issues, Great Job! I Was Just Wondering I'm No PHP Genius, But I've Made My Way To "my-functions.php" and changed up the one standard function to suit my needs. The thing is it isn't replacing the varable in my email. This is very urgent, and this will solve all my issues so any help would be appreciated. My variable I want to replace is {URL} do i need to make that a hidden field, or should it just replace with that string in the text?
Please see my code:
function my_cforms_logic($cformsdata,$oldvalue,$setting) {
if ( $setting == "adminEmailTXT" || $setting == "adminEmailHTML" || $setting == "autoConfTXT" || $setting == "autoConfHTML" ){
### it's only changed though for form #2
### and requires "{CustomSalutation}" to be in the message(s)
if ( $cformsdata['id']=='1' ){
### Returned message depends on user choosing the radio option "Mrs" or "Mr" (field value!)
if( $cformsdata['data']['Track']=="Original" )
return str_replace('{URL}',"www.original.com",$oldvalue);
}
}
return $oldvalue;
}
Thank You in Advance.
Dylan Holshausen