Skip to main content
1 of 3
anandmongol
  • 137
  • 1
  • 2
  • 13

redirect to uploaded post after form submission from front-end

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');     
}
anandmongol
  • 137
  • 1
  • 2
  • 13