Re: File Upload Field
| From: | Rémy Dufour | Date: | Mon, 20 Nov 2000 19:20:37 +0000 |
| Subject: | Re: File Upload Field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26312@lists.php.net to get a copy of this message | ||
You must keep image name in another var (ex. $artFileName ) and, when form
is submited, you check if $HTTP_POST_FILE[art][Name] is empty and, if so,
set $art = $artFileName.
----- Original Message -----
From: Alvin Tan <alvintan@inscribe.com.my>
To: Php-General <php-general@lists.php.net>
Sent: Saturday, November 18, 2000 5:48 AM
Subject: [PHP] File Upload Field
> Hi everyone,
>
> Newbie here. I've managed to almost complete a simple db script that
writes
> to and reads from MySQL. When I call an existing entry with
> mysql_fetch_array and populate the form with the data from the db, it's
fine
> except the file upload field. Each time I try and edit an entry, it
> overwrites my image file upload (with blank). If I check the source, my
file
> upload field does have the correct data, but how can I tell the form to
not
> overwrite this particular field:
>
> <input type="file" name="art" value="<? echo $art_name
> ?>">
>
> Hope I'm being clear...
>
> TIA
> @lvin
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>