powerpants Posted February 26, 2009 Share Posted February 26, 2009 Hello! I have a page where the user enters data into a form, and the form POST's that data to another php page where data from the form is inserted into the database. I want to make so that if all the database queries do not produce any errors, the second page then redirects and re-POST's some of the original form data to a third page for use in a php script there. So, how can I automatically POST data and redirect to another PHP page at the end of my script on the second page? Thanks! Link to comment https://forums.phpfreaks.com/topic/147060-solved-repost-and-redirect/ Share on other sites More sharing options...
premiso Posted February 26, 2009 Share Posted February 26, 2009 Either use Session to store/repopulate the data or use GET. That is you want it done automatically. If you would rather have a user push a "Post More" button you add the post data to a form in hidden input fields and make that action go to the next posting. Link to comment https://forums.phpfreaks.com/topic/147060-solved-repost-and-redirect/#findComment-772035 Share on other sites More sharing options...
powerpants Posted February 26, 2009 Author Share Posted February 26, 2009 Cool, thanks! Link to comment https://forums.phpfreaks.com/topic/147060-solved-repost-and-redirect/#findComment-772053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.