Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am getting parameter named 'auth_token' from a url and need to post it back to another url.

<form action=" https://easypay.easypaisa.com.pk/easypay/Confirm.jsf " method="POST" target="_blank">
<input name="auth_token" value="" hidden = "true"/>
<input name="postBackURL" value=" http://www.my.online-store.com/transaction/MessageHandler1" hidden ="true"/>
<input value="confirm" type = "submit" name= "pay"/>
</form>

The code does get and pass the parameter because it is for php. Can anyone help me in this regard.

What I have tried:

I tried different ways to get and pass the parameter but nothing work.
Posted
Updated 10-Aug-16 22:55pm
v3
Comments
F-ES Sitecore 11-Aug-16 4:12am    
In server code? On the client? With a normal form submission? An automatic form submission? Ajax? You're going to have to explain your requirements a bit better, it is too vague to answer.

1 solution

Check this code may be useful to you


Void Page_Load(){

string auth_token = Request.QueryString("auth_token");

string postForm = "<center style='font-family:Verdana; font-size:13px; margin-top:200px;'><p>Please Wait, Transferring data….</p></center>" +
"<form action='http://www.my.online-store.com/transaction/MessageHandler1' method='post' ID='Form1' name='Form1'>"
"<input type='hidden' name='auth_token' value='" + auth_token + "' ID='auth_token'>" +
"</form><script>document.Form1.submit();</script> ";
Response.Clear();
Response.Write(postForm);
Response.Flush();
Response.End();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900