Re: images
| From: | Rick Emery | Date: | Thu, 17 Oct 2002 14:32:36 +0000 |
| Subject: | Re: images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120339@lists.php.net to get a copy of this message | ||
Do a google search. This is a common request and has been solved many times.
---- Original Message -----
From: "Edward Peloke" <epeloke@echoman.com>
To: <php-general@lists.php.net>
Sent: Thursday, October 17, 2002 9:48 AM
Subject: [PHP] images
Hello all,
I am a php newbie. I am trying to create a page that will allow users to
uload images. The image url will be saved in a mysql db. this is about as
far as I have the form code
<form method=post name=upform action="c:\junk"
enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value="Submit" >
</form>
How do I tell it where to "submit" the files? How in php can I rename the
file (so that two users don't try to upload pictures with the same name) and
capture the path so that I can insert it into a db(I know the db part, just
now the rename part)?
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php