Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Refresh Page from within Vanilla

When an error occurs I want the post.php page to reload and display the error
right now I have this code
$Context->WarningCollector->Add($Context->GetDefinition('WrongDateFormat'));
header('Location: '.GetUrl($DiscussionForm->Context->Configuration, 'post.php', '', 'CommentID', $CommentID, '', ''));


First I do not want to track incoming string and track the CommentID or Category ID. I need a simple way to just refresh the page
Second I have added the errors. but when post.php loads the error is not displayed. is there something more that I have to do to get it to display. post.php already has the error placeholders.

Comments

This discussion has been closed.