A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: PHP - Handling multiple variables with the same name

  1. #1
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016

    PHP - Handling multiple variables with the same name

    I am at my wits end, absolutely stuck.

    I am runnning a picklist script and it generates the following query string:

    addPage.php?pageTitle=&PickList%5B%5D=11&PickList% 5B%5D=12&PickList%5B%5D=15&pageId=2005-120-14-8-0

    How on earth do I handle the variables using php or javascript in the query string as they all have the same name?

    Can anyone help

    PLEASE !

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    if you look closer(through unencoding eyeglasses) all those varnames are picklist[] - php will create a "picklist" array for you.

    Musicman

  3. #3
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016
    how would I access this then musicman ?

  4. #4
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016
    I am a muppet

    thanks musicman, something soooooo simple has bugged me for days.

    You, good man, are a genius.

    cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center