Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
94
rated 0 times [  101] [ 7]  / answers: 1 / hits: 185398  / 11 Years ago, thu, september 26, 2013, 12:00:00

How can I redirect with post data?



How to move to new page with $_POST?



How to do this? How is it done and whyfore shall it be done


More From » jquery

 Answers
19

There is a JQuery plug-in that accomplishes pretty much what you're trying to do: https://github.com/mgalante/jquery.redirect/blob/master/jquery.redirect.js.


After including JQuery and the jquery.redirect.min.js plug-in, you can simply do something like this:


$().redirect('demo.php', {'arg1': 'value1', 'arg2': 'value2'});

Use the following code on newer JQuery versions instead:


$.redirect('demo.php', {'arg1': 'value1', 'arg2': 'value2'});

[#75398] Wednesday, September 25, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laytonlamontm

Total Points: 745
Total Questions: 130
Total Answers: 130

Location: Cambodia
Member since Thu, Oct 7, 2021
3 Years ago
;