how do i redirect a user to a page using php?

petre

New member
i made a form for comments on my website and i used php to get the data into the database. Now i want to display the data on a separate page and i know how to do it, but i don't know how to redirect the user to that page after he hits the submit button on the comment page.
does anyone know how i can do that?
 
The simple answer is using the header redirect.

header( 'Location: http://www.yoursite.com/new_page.html' ) ;

Does this not work for your instance?
 
Back
Top