Hello... I'm trying to upload a picture along with other information.

I have several fields to input, such as name, address, etc. (and I get those
to go to the MySQL database with no problem).  But on the same page I want
the user to be able to pick a picture of themself from their harddrive and
upload it.  The script must either enter the address of the uploaded picture
to MySQL so it will show up with the user's info., or rename it something
like $id.ext.


I know something like this needs to go in the html:

<form enctype="multipart/form-data" action="_URL_" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>I'd like to just use one "submit" button that uploads everything (the
data to the database and the picture to my server).

I've read the PHP manual but it's greek to this newbie... any help GREATLY
appreciated....


thanks,
Matt

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

Reply via email to