SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Apr 2003
    Location
    canada
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem selecting multiple check box from a category

    Hello,

    the script you see below basically displays a 5 columns of categorys(check boxs).

    if a user checks one of the category and hits the submit button it works.

    problem: if a user checks 2 or more category's from the list it just keeps spinning and spinning eventually the page times out.

    the processingscript.php --> is called from index.php and the processingscript.php basically has: print_r($_POST);

    Any ideas as to why?

    category is in file called index.php
    PHP Code:
    echo '<div>';
        echo 
    '<table>';
            foreach(
    $categoryArray as $key => $td)
            {    if(
    $key%$setColumn == 0) echo "<tr>";
                echo 
    '<td> <input type="checkbox" name="catselect[]" value=" '$td '"> '$td .        
                           
    '</td>';                                
                if(
    $key%$setColumn == ($setColumn 1)) echo "</tr>";
            } 
                echo 
    "</table>";            
                echo 
    '</div>'

  2. #2
    SitePoint Zealot
    Join Date
    Apr 2003
    Location
    canada
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to add to my post.. it seems like the problem on appears in firefox and it works in IE...
    - I cleared cash, history....
    - disabled javascript
    nothing seems to fix this


Bookmarks

Posting Permissions

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