Re: Array of parameters

From: Date: Mon, 22 Jul 2002 13:05:10 +0000
Subject: Re: Array of parameters
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14871@lists.php.net to get a copy of this message
try this: use square brackets as follow: policy_codes[] Then in $_GET["policy_codes"] you'll have an array!!!! Hope this helps, Evan "Sandeep Murphy" <sandeep.murphy@oni.pt> ha scritto nel messaggio news:E19D413241925C44AEC5FB528960B8CB01229AF2@excalr01.oni.pt... Hi, Am relatively new to PHP and wud appreciate if anyone can help me out... My URL using the GET method reads as following.. http://feedback.php?date=10-11-2001&policy_codes=1&cbox=on&desc=aaaa&policy_ codes=9&cbox=on&desc=bbbbb&temp=tp Now, I have to insert the data into an MySQL table but am not able to split the URL such that the policy codes,cbox and desc are inserted twice rather than only the last one... The variable has to necessarily be the same name... any suggestions?? thnx, sands

« previous php.windows (#14871) next »