Skip to content
Snippets Groups Projects
Commit 9e1eb480 authored by Peter Rotich's avatar Peter Rotich
Browse files

email: maintain entered data on error

parent 4c2bd09a
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,12 @@ if($_POST){
$errors['err']=__('Error sending email - try again.');
}
}
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
$nav->setTabActive('emails');
$ost->addExtraHeader('<meta name="tip-namespace" content="emails.diagnostic" />',
"$('#content').data('tipNamespace', '".$tip_namespace."');");
require(STAFFINC_DIR.'header.inc.php');
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
?>
<form action="emailtest.php" method="post" id="save">
<?php csrf_token(); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment