hi guys,
does anybody know how to pass a array from one page to another page. i have two pages,
1.main.php
2.pass.php
in main.php i have a array called <b>$aa</b> and when submit i want to pass that array to pass.php to display the array.
does anybody know how to do this. If it is not an array it works fine.
Another thing is when i press submit it in the address bar the value of the </b>$aa</b> passed as <b>Array</b>. But i have no idea about it.
for your undestanding i give the coding of two pages.
main.php
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<form name="f1" action="pass.php">
<?php
@$aa= Array();
@$aa[1]="niroshan";
@$aa[2]="fernandez";
print "<input type=\"hidden\" name=\"aa\" value=\"".@$aa."\">";
?>
<input type="submit" name="submit">
</form>
</BODY>
</HTML>
pass.php
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<?php
print "value is=<b>".@$aa[1]."</b>";
?>
</BODY>
</HTML>
If anybody can help me i really appreciate it. need some speedy reply.
thanx in advance.
regards,
Niroshan