Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.