[EMAIL PROTECTED] wrote:
> The specific example one of the PHP guys gave was extracting the URL
> vars from a multiple select form. As the URL search string would read:
>
> attribute=1&attribute=2&attribute=3
>
> He was saying he would need to set up a loop because
> @GET["attribute"] would just return the last value - "3".
>
> Whereas CF must automatically parse this as URL.attribute would
> be a list of
> {1,2,3}You can send form elements as arrays in PHP: <http://au.php.net/manual/en/faq.html.php#faq.html.arrays> So: <select name="foo[]" multiple="multiple"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> Would translate into this in PHP if you selected 'One' and 'Three': $_POST['foo'][0] = 1; $_POST['foo'][1] = 3; -- Lindsay Evans. Developer, Red Square Productions. [p] 8596.4000 [f] 8596.4001 [w] www.redsquare.com.au --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
