IE does not recognize array passed through form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • testuser
    New Member
    • Dec 2006
    • 6

    #1

    IE does not recognize array passed through form

    works fine in FF, not in IE

    Code:
    <form action = go.php method = post>
    <input type='checkbox' name='id[]' value='1'>
    <input type='checkbox' name='id[]' value='2'>
    <input type='checkbox' name='id[]' value='3'>
    <input type=submit value='Send'>
    </form>
    any ideas why?
  • snowdonkey
    New Member
    • Aug 2006
    • 37

    #2
    Your post is kinda nondescript...c an you provide the code in go.php that handles the form?

    Comment

    • testuser
      New Member
      • Dec 2006
      • 6

      #3
      go.php simply recognizes if the data is an array

      the initial code above should be GET instead of POST

      Code:
      	
      if (is_array($_GET["siteid"]))
      { 
      echo "IS ARRAY";
      }

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        testuser: you are double posting!!. You also opened this problem in the PHP forum!

        Ronald :cool:

        Comment

        Working...