> Im new to PHP and am trying to upload images to the server and store the >file name into mySQL database...... but i dont have a clue how to do this... >all i know is i need to use <Input Type="File"> other than that im lost. # Function MakeUploadForm() ################################################### function MakeUploadForm(&$Variable) {
print<<<MakeForm <IMG SRC="../graphics/blank.gif" WIDTH="40" HEIGHT="1"> Please note. Your files are being uploaded to a computer with a Unix operating system. With Unix, as opposed to Windows, the case of letters makes a difference. For the sake of standardization, all file names will have letters converted to all lower case. Also, Unix does not allow files with embedded spaces or any special characters. All file names will have anything other than alpha or numeric characters removed. <P> <CENTER> <FORM ENCTYPE="multipart/form-data" ACTION="$Variable[PHP_SELF]" METHOD="POST"> <INPUT TYPE="HIDDEN" NAME="Action" VALUE="UploadFile"> <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="100000"> Upload this file: <INPUT NAME="UserFile" TYPE="FILE"> <INPUT TYPE="SUBMIT" VALUE="Upload Now"> </FORM> </CENTER> MakeForm; } # End of function MakeUploadForm() ########################################## -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]