Need help on forms

Discussion in 'PHP' started by Dakuipje, Oct 7, 2008.

  1. #1
    Ok I got a script called PickList Script that I want to use. My problem is that on submit it submits multiple values under the same name, I need to get all those values in 1 string or array.

    The URL (if used $_GET, im using $_POST but just to explain) looks like:
    I need to get all the PickList values in one string or array. How do I do this ?

    If needed im using this script:
    http://www.javascriptkit.com/script/script2/picklist.shtml

    Thnx will rep you if you help me out :)
     
    Dakuipje, Oct 7, 2008 IP
  2. cornetofreak

    cornetofreak Peon

    Messages:
    170
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try using var_dump($_POST); or print_r($_POST); to show a list of variables and there "Box Numbers" :) and then create a foreach loop to do what you will with your data if you need!
     
    cornetofreak, Oct 7, 2008 IP
    Dakuipje likes this.
  3. Dakuipje

    Dakuipje Peon

    Messages:
    931
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thnx it already seems to be in an array:

    Pretty damn stupid off me :( + rep to you
     
    Dakuipje, Oct 7, 2008 IP