Upon clicking on a link I want to go to another page with lots of data (which I do not wish to pass through GET so I used post like this)
the links is
and just above
but it opens in the same page and not in a new one as I want any help?
the links is
Code:
<a onClick="display1(1)" onMouseOver="this.style.cursor='pointer'" class="a3" >click here</a>
Code:
<form name="f1" id="f1" method="post" action="http://127.0.0.1/dome/main.php?page=69">
<input type="hidden" name="info" id="info" value=""/>
</form>
<script type="application/javascript">
function display1(num)
{
if (num=='1')
{
document.f1.info.value='PA0720001|02861|02875|02708|02708|PA0720004|PA0720005|PA0720006|11114002169|11114002143|11114004269|11114004249|11114004229|11114000103|11114001109|11115002169|11125002169|BTT0000006|BTT0000005';
}
else if (num=='2')
{
document.f1.info.value='BTT0000005';
}
else if (num=='3')
{
document.f1.info.value='BTT0000006|02708';
}
//document.f1.action='';
document.f1.submit();
}
</script>
Comment