Oh yes.. Indeed on! I am really stupid..
// set vericode
if($vericode) {
$_SESSION['eForm.VeriCode'] = $fields['vericode'] = substr(uniqid(''),-5);
}
# get SESSION data - added by sottwell
if(isset($_SESSION['xxxx'] && !empty($_SESSION['xxxx'])) {
$value = $_SESSION['xxxx'];
$fields[$name] = $value;
}
# build form
return formMerge($tpl,$fields);
}
[ [EForm? *formid = ’ feedbackForm ’ *to = ` [email protected], [email protected], [email protected] ` *tpl = ’ eFeedBackForm ’ *report = ’ eFeedbackReport ’ *thankyou = ’ eFeedbackThanks ’ *mailselector = ’ department ’ *vericode = ’1’ *subject = " Web feedback site "]]
You have all paprameters starting with a * instead of an & and you have used some single quotes (’) and double quotes (") instead of backticks (`). Perhaps if you write it like this it might work.[ [EForm? &formid=`feedbackForm` &to=`[email protected],[email protected],[email protected]` &tpl=’eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &mailselector=`department` &vericode=`1` &subject =`Web feedback site`]]
Tank you very much !!!!
I hacked a copy of eForm to get the data from the SESSION as well as the POST. I added this between the vericode setting and the build form section:
// set vericode if($vericode) { $_SESSION['eForm.VeriCode'] = $fields['vericode'] = substr(uniqid(''),-5); } # get SESSION data - added by sottwell if(isset($_SESSION['xxxx'] && !empty($_SESSION['xxxx'])) { $value = $_SESSION['xxxx']; $fields[$name] = $value; } # build form return formMerge($tpl,$fields); }
Add as many as you need.
&sessionVars=`items,quantities,ccNum,ccExp`