Hey guys,
I have a simple Form, which sends e-mails. If the formaction is done, the previous page must be loaded.
In SS 2.4 I have used this:
function doSubmitEntry($data, $form){
...
$email = new Email($from,$to,$subject,$body);
$email->send();
Director::redirect($this->Link("?success=1"));
return;
}
The system sends the e-mails correctly. But the previous page isn´t loaded and the user stays on www.mysite.com/mypage/Form.
I couldn´t find the right syntax for SS3. Can anyone help?