Created
August 16, 2011 15:07
-
-
Save jackreichert/1149320 to your computer and use it in GitHub Desktop.
cforms II custom function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* <--- move or remove this line to uncomment functions below (and check the end as well!) | |
function my_cforms_action($cformsdata) { | |
### Extract Data | |
### Note: $formID = '' (empty) for the first form! | |
$formID = $cformsdata['id']; | |
$form = $cformsdata['data']; | |
### triggers on your third form | |
if ( $formID == '3' ) { | |
### Do something with the data or not, up to you | |
$form['Your Name'] = 'Mr./Mrs. '.$form['Your Name']; | |
} | |
### Send to 3d party or do something else | |
@mail('[email protected]', 'cforms my_action test', print_r($form,1), 'From: [email protected]'); | |
} | |
ending comment line for: my_cforms_action --------------------> */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment