Hi.
I am making a form which will send a report to admin based upon a similar script I made for a different site using the &eFormOnMailSent function.
However whenever I press submit on my form the page goes blank, but my tailor made e-mail message still gets sent.
The form has a vericode on it, but even if I remove the vericode the form always redirects to a blank page and I don’t know why.
I also have friendly URLs on, but even if I switch them off the page always redirects to a blank page.
Here’s the eform call;
[[eFormEventFunctions]]
[!eForm? &eFormOnMailSent=`dothistest` &vericode=`1` &formid=`feedbackForm` &subject=`Website contact submission` &to=`[email protected]` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &from=`[email protected]` &fromname=`[(site_name)]` &tpl=`tpl_contactform` !]
The form is very simple at the moment;
<p>[+validationmessage+]</p>
<form method="post" action="[~[*id*]~]">
<input type="hidden" name="formid" value="feedbackForm" />
<p><label for="Name">Your Name *</label><br />
<input type="text" id="Name" name="Name" maxlength="60" eform="Your Name::1" /></p>
<p>
Please enter the anti spam code below:<br />
<img src="[+verimageurl+]" alt="verification code" border="1"/>
</p>
<p>
<label for="vericode">code</label>
<input type="text" name="vericode" size="20" />
</p>
<p><input type="submit" name="submit" value="Send" /></p>
</form>
And my eformfunctions are very simple too;
<?php
// eFormEventFunctions snippet
function dothistest (&$fields){
global $modx;
global $templates;
die("I'm inside the :" . __FUNCTION__);
} // end function
?>
When I remove all calls to the eFormEventFunctions the form displays and reloads properly, but when I put them in all that happens is that the page goes blank and I’m not sure why.
Is there any reason why the page would go blank when I press ’submit’?