NYCPHP Meetup

NYPHP.org

[nycphp-talk] url pass array as parameter

chad qian nynj.tech at hotmail.com
Mon Jun 30 17:32:34 EDT 2008


Hi,
I want to pass an unknow array cart[]: to "gallery" page through url link:
 
My url is:gallery.php?final=cart[]       
 
On gallery.php page
I want to output everything in this array
 
My code is:
$finalcart=array();
$finalcart=$_get['final']
for(var i=0;i<sizeof($finalcart);i++)
   print finalcart[i];
 
 
Maybe my code is wrong.I only want to show my need.Can anyone help me to correct my code?
 
Thanks!
 
chad
 
_________________________________________________________________
The other season of giving begins 6/24/08. Check out the i’m Talkathon.
http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080630/eb483dad/attachment.html>


More information about the talk mailing list