Passing Values
-
Hi,
I used to pass some values and add them to the admin email, using my_cforms_logic.
Since it is now deprecated, what should I use?For example, I passed a var like this:
https://aquatec-ecosys.com/contactenos/solicitar-cotizacion/?ref=Producto:%20Bombas%20para%20desechos%20s%C3%B3lidosAnd used this function:
function my_cforms_logic($cformsdata,$oldvalue,$setting) {
### example: the below code changes a user-variable in both the Text & HTML part of
### the admin email & auto confirmation emailif ( $setting == “adminEmailTXT” || $setting == “adminEmailHTML” || $setting == “autoConfTXT” || $setting == “autoConfHTML” ||
$setting == “adminEmailDataTXT” || $setting == “adminEmailDataHTML”){$post_reference = $_POST[“ref”];
$post_subject = $_POST[“asunto”];if ($post_reference):
$cformsdata[‘data’][‘ref’]==$post_reference;
else:
$cformsdata[‘data’][‘ref’]==”N/A”;
endif;if ($post_subject):
$cformsdata[‘data’][‘asunto’]==$post_asunto;
endif;endif;
return $oldvalue;
}The page I need help with: [log in to see the link]
- The topic ‘Passing Values’ is closed to new replies.