I have to use a simple form to retrieve a token from a server. I then need to use that token to create a unique link for a user session. I have the following sample code to generate the token page:
<form id="token" action="whatever.php?name=joe&hobbie=fun" method="POST"></form>
<script>
document.getElementById('token').submit();
</script>
This automatically takes me to the page that has the token on it as a text string. I just need to figure out how to get that text as a variable I can use.