I'm going to just paste the entire page I've got right now. This is the html as output to the browser for the form submittal: <HTML> <HEAD> <TITLE>Add an Image</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
SQL: SELECT * FROM Development_ImageDate<BR>SQL: SELECT * FROM Development_Photographer<BR> <FORM ENCTYPE="multipart/form-data" ACTION="Image_Add.php" METHOD="post"> <TABLE WIDTH="790" BORDER="1" CELLPADDING="4" CELLSPACING="0" BGCOLOR="#CCCCCC" BORDERCOLOR="#FFFFFF"> <TR ALIGN="left" VALIGN="top"> <TD COLSPAN="5"> <H2> Add an Image:</H2> </TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD COLSPAN="5"> <P><B>Description:</B> This page provides both the ability to upload the Full Size Image and a Thumbnail as well as add additional information about the Image. A Thumbnail is the small, preview image loaded on a page. The user clicks on this thumbnail to view the Full Size Image. The Date and Date Caption will appear over all images uploaded for a particular date. This is useful for uploading large numbers of photos, all pertaining to the same show. That way, no individual Image Captions are really necessary.<BR> <B>Directions:</B><BR> 1. Select a Date from the Drop down list. If the date isn't in the list, type it in in the Date text box. Add a caption in the Caption text box. This general Caption will appear over all images submitted for that date.<BR> 2. Choose an image for the Full Size Image<BR> 3. Choose an image for the Thumbnail Image<BR> 4. Choose the Photographer from the list box. If the photographer is not listed, this person may be aded in the Add Photographer text box<BR> 5. Add an Image Caption.<BR> <BR> <FONT COLOR="#FF0000"><B>Please click the Upload File Now button ONLY ONCE, the file may take some time to upload. DO NOT CLOSE THE WEB BROWSER, this will stop the file upload.</B></FONT></P> </TD> </TR> <TR ALIGN="left" VALIGN="top"><TD COLSPAN="5"><FONT COLOR="#FF0000">WARNING: There were errors on the page, but they are not serious.<BR><UL><LI>No Image Date Information exists in the database.</LI><LI>Image Date information is added to the database each time an Image is added or updated</LI><LI>Please go to the <A HREF="Image_Manager.php">Image Manager</A> Page To add or update Image information</LI><LI>There is no photographer information in the database.</LI><LI>Photographer information is added to the database each time an Image is added or updated</LI><LI>Please go to the <A HREF="Image_Manager.php">Image Manager</A> Page To add or update Image information</LI></UL> <BR></FONT></TD></TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Date:</TD> <TD COLSPAN="4"> </TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Add Date/Caption</TD> <TD WIDTH="151"> Date:</TD> <TD WIDTH="151"> <INPUT TYPE="text" NAME="imageDate" VALUE="" SIZE="10" MAXLENGTH="10"> </TD> <TD WIDTH="163">Date Caption:</TD> <TD WIDTH="164"> <INPUT TYPE="text" NAME="dateCaption" SIZE="50" VALUE=""> </TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Full Size Image/<BR> Thumbnail Image:</TD> <TD WIDTH="302" COLSPAN="4"> <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="2000"> <INPUT NAME="userfile" TYPE="file"> </TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Photographer:</TD> <TD COLSPAN="4"> </TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Add Photographer:</TD> <TD WIDTH="302" COLSPAN="2"> <INPUT TYPE="text" NAME="photographer" SIZE="30" VALUE=""> </TD> <TD WIDTH="327" COLSPAN="2">Last Name, First Name</TD> </TR> <TR ALIGN="left" VALIGN="top"> <TD WIDTH="139">Add Image Caption:</TD> <TD COLSPAN="4"> <INPUT TYPE="text" NAME="imageCaption" SIZE="50" VALUE=""> </TD> </TR> </TABLE> <P ALIGN=LEFT> <INPUT TYPE="submit" NAME="Submit" VALUE="Upload File Now"> <INPUT TYPE="hidden" NAME="validate" VALUE="true"> </P> </FORM> </BODY> </HTML> On Wed, 3 Apr 2002, Bob wrote: > Would it help to have the <form> tag look like this: > > <form method=post action=\"$PHP_SELF?command=writeProduct\" > enctype=\"multipart/form-data\"> > > The enctype is the part I'm wondering about.. The action and method would be > your own or course.. > > Later, > > Bob > > ----- Original Message ----- > From: "Carl Schmidt" <[EMAIL PROTECTED]> > To: "Bob" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, April 03, 2002 8:12 PM > Subject: Re: [PHP] Cannot upload JPEG only > > > > No I haven't. Right now, it's uploading via a simple form POST. I can > > initiate the upload , but when I have the php process the file, it fails > > on the first test for is_uploaded_file, and tmp_name is none. The thing > > is though, Iam only unable to upload gifs and jpegs, but yet i can upload > > other things like mp3s and text files and such. > > > > Carl > > > > On Wed, 3 Apr 2002, Bob wrote: > > > > > Did you try passive mode FTP? > > > > > > Later, > > > Bob > > > > > > ----- Original Message ----- > > > From: "Carl" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Wednesday, April 03, 2002 7:54 PM > > > Subject: [PHP] Cannot upload JPEG only > > > > > > > > > > I'm able to successfully upload mp3s and text files to the server, but > > > > for some reason it won't let me upload jpegs or gifs? Is that a > server > > > > configuration thing? > > > > > > > > Carl > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php