Home:ALL Converter>Post data using ajax and then go to that page with posted data?

Post data using ajax and then go to that page with posted data?

Ask Time:2019-07-09T12:56:48         Author:Sohail Farooq

Json Formatter

I have a problem i have to post 2 Ajax request at the same time. I have post data to one file and return response and then post to other page and then go to that page with posted data so i can access by using $_post on next page and show the values.

i have tried some redirect request but none of them works. windows opens but no value is posted $_post is empty. i want to go to the addproduct.fr.php page after the values are posted with posted values.

type: 'POST',
enctype: 'multipart/form-data',
data: data,
processData: false,
contentType: false,
cache: false,
timeout: 600000,
url: 'filecreate.php',
success: function(response) { alert(response); },

type: 'POST',
enctype: 'multipart/form-data',
url: 'addproduct.fr.php',
data: data,
processData: false,
contentType: false,
cache: false,
timeout: 600000,
success: function(response) { alert(response); },

Author:Sohail Farooq,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56945582/post-data-using-ajax-and-then-go-to-that-page-with-posted-data
yy