I want to redirect my form to a php page after submit and after data of the form have been inserted (in a correct way) in my database. I use action="insert-data.php" to insert data but I want to redirect the user to a different php page (that is not a welcome page). How can i redirect him after the insert? Thanks a lot.
Asked
Active
Viewed 2,832 times
0
-
look in the manual for the header() function – Jun 09 '13 at 21:37
-
Ok, so adding the header I use the insert-data.php to insert data but i'm being redirected to another page, isn't it? – Gio Jun 09 '13 at 22:13
-
But Have I to use insert-data.php (where I would insert my header) as external page or can I call the action in the same page of the form? @Dagon, thanks. – Gio Jun 09 '13 at 22:21