Jump to content

[SOLVED] Repost and Redirect


powerpants

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.