javascript - how to redirect with POST Variables from php? -


I wanted to create a login in a web application which apparently uses POST in an intermediate valid PHP file The intermediate valid file generates a ticket that will be an identifier throughout the session, but how can I post the ticket as a post parameter? To validate the file without intermediate login from dell ??

  & lt; Script type = 'text / javascript' & gt; Function postRedirect () {document.forms ['form']. Submit (); } & Lt; / Script & gt; & Lt; Body onload = "postRedirect ();" & Gt; & Lt; Form name = "form" action = "home.php" method = "post" & gt; & Lt; Input type = "hidden" name = "ticket" value = "& lt ;? php echo $ ticket ;? & gt;" / & Gt; & Lt; / Form & gt; & Lt; / Body & gt;  

The above given code that works for functionality but there is a significant delay in loading the home page, this issue should be a better solution and I'm eager to find Here's another alternative way to get it here. PS: It is not possible for me to use the session, but please tell me if there is no other solution for this thank you!


Comments