2

i have a form which when submitted goes to login page of another site and After the authentication is verified, the user is redirected back to my site and i receive from post values of: TOKEN and Address information.

I want to get the TOKEN and address information sent in post on the page to which i am redirected after login. How can i get those values through jquery or javascript.

1
  • In what format are you reading data? Commented Nov 7, 2012 at 8:43

1 Answer 1

1

The POST values are not available to jQuery or Javascript, because the server does not send them back to the client after the form is submitted. You need to echo them in your page using a server-side code, for example in PHP :

var $_POST = <?php echo json_encode($_POST); ?>;

Then you'll be able to use $_POST.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.