troubleshooting Question

Create form and submit

Avatar of tonelm54
tonelm54 asked on
jQuery
4 Comments1 Solution529 ViewsLast Modified:
Ive been look at ways of transferring data between pages, currently I use GET such as:-
window.location = "newPage.php?myVariable=myValue";

What I would like to do is use POST instead, however on reading up there is no way of posting data to another page and showing the result. I know I can submit a form to a page, and look at the data, but if I want to transfer my data to a new page (as a normal form redirects you to another page).

What I was thinking of doing is creating an element of a form, and submitting the form into a new page.

So, looking into this I thought I could use .submit() on a forms ID, however this doesn't redirect the form.

I know I could submit a form, and then put the returned string (html code) into a div on the current page, but would prefer to redraw the entire page.

Has anyone had any experience or idea how I can create a POST request, submit it to a page and then view the page completely?

Thank you
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros