GRRRRRRRRRRRRRRRRRRRR
im trying to use this if statement with images but with internet explorer i get the boxes with the red x if there is no image assingned to that area

      <th width="95" height="75" scope="row"><?php if($imgnumber<=1){ echo "<img src=" . $directory . $image1url;?>" width="87" height="69" border="0" usemap="#Map"><?php } ?></th>
      <td width="84"><?php if($imgnumber<=2){ echo "<img src=" . $directory . $image2url;?>" width="87" height="69" border="0" usemap="#Map2"><?php } ?></td>
      <td width="85"><?php if($imgnumber<=3){ echo "<img src=" . $directory . $image3url;?>" width="87" height="69" border="0" usemap="#Map3"><?php } ?></td>
      <td width="88"><?php if($imgnumber<=4){ echo " <img src=" . $directory . $image4url;?>" width="87" height="69" border="0" usemap="#Map4"><?php } ?></td>
      <td width="89"><?php if($imgnumber<=5){ echo "<img src=" . $directory . $image5url;?>" width="87" height="69" border="0" usemap="#Map5"><?php } ?></td>
    </tr>

    So you're saying that when there's a missing image internet explorer displays a missing image icon?

    ....

    And?

      Then don't tell it to display images which don't exist.

        its part of the process part of a form so there are drop down boxes for the user to decide how many images are needed

          So a user selects a random number, and you just blindly attempt to display that many images whether they're there or not? Why not just check that the user entered a valid number? Or, you know, check that each one exists before attempting to display it?

            i have drop down boxes in the form part were they can choose up to 25 images

              Without any knowledge of what you're trying to accomplish, that means nothing to me.

                Write a Reply...