I'm using the following code to redirect the page, in order to prevent re-submission of the form. And it does fine job doing redirection to the homepage.
But I want redirection to uploaded respective post after form submission from front-end.
if(isset($_POST['submit-coupon']) ) {
// other codes
header('Location: http://coupon.mn');
}