I have a database driven music web site that allows the admin to create
photo galleries. The photos and captions are entered using a form which
allows the admin to upload a small and large photo. The number of photos is
requested in a form that calls this entry form. The code looks like this:

   for($a=1;$a<$requestCount+1;$a++){
   ?>
    <tr>
     <td align=right>
      PhotoBig #<?echo"$a"?>:
     </td>
     <td>
      <input type=file name=userfile[]>
     </td>
    </tr>
    <tr>
     <td align=right>
      PhotoSmall #<?echo"$a"?>:
     </td>
     <td>
      <input type=file name=userfile[]>
     </td>
    </tr>
    <tr>
     <td align=right>
      Caption #<?echo"$a"?>:
     </td>
     <td>
      <input type = text name = NewCaption<?echo"$a"?>>
     </td>
    </tr>
   <?
   }

The problem is, there seems to be a maximum of 12 small and 12 large photos.
If I change to only large photos, the maximum becomes 25, which leads me to
believe that php puts a limit on the size an array from a form can be. The
error displayed comes from apache (internal server error) and in the apache
error log, I get the "premature end of script headers php.exe" message which
of course is no help.

Does anyone know of a setting in Apache or php to fix this?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to