View Single Post
Old 03-04-2012, 10:47 PM   PM User | #3
webdev1958
Banned

 
Join Date: Apr 2011
Posts: 656
Thanks: 14
Thanked 69 Times in 69 Posts
webdev1958 can only hope to improve
PHP Code:
<input type="file" name="picture_name" <?php echo $image_name?> >
You can't enter your own values for the input file name for obvious security reasons.
Otherwise people could send all sorts of malicious code to the server.

You can get the original filename to enter into the database from $_FILES['txtUploadFile']['name'] where txtUploadFile is the name of your file input box.
webdev1958 is offline   Reply With Quote
Users who have thanked webdev1958 for this post:
Buffmin (03-05-2012)