Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a scenario:
1. Have to show the data in the new tab.
2. Have to pass a Post parameter.

I can do this with hyperlink and also setting the target with _blank.

The problem is when i send the parameter, it is in GET format and the parameters are seen in the browser.

Any solution for sending the data in the Post format and the returning data to show in new tab.

Snippet I used, I need the same in the POST parameters. I have replaced < with ( so that tags gets displayed.
(a) href="mmtasks_update_task.php?type=view_hdr_rep&task="(?php echo $tid;?)"
target="_blank">View HDR (a)
Posted

1 solution

I guess what you want would be a form. Just with a link you can't send POST data.

Create a form with a (or multiple) hidden field(s), and a target="_blank", that should do the job.
 
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