Skip to content

Instantly share code, notes, and snippets.

@kinglozzer
Created February 5, 2014 11:20
Show Gist options
  • Save kinglozzer/8821523 to your computer and use it in GitHub Desktop.
Save kinglozzer/8821523 to your computer and use it in GitHub Desktop.
<?php
if ($data['Tel'] !== $data['ConfirmTel']) {
Session::set("FormInfo.{$form->FormName()}.data", $form->getData());
$form->addErrorMessage('Tel', 'Telephone numbers do not match', 'message required');
return $this->redirectBack();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment