Re: images
| From: | Marek Kilimajer | Date: | Thu, 17 Oct 2002 15:22:40 +0000 |
| Subject: | Re: images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120343@lists.php.net to get a copy of this message | ||
action cannot be c:\something, this bypasses the server and php interpreter
Edward Peloke wrote:
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