Re: Tricky or not ? upload & rename, store image-filenames in database
| From: | Simon Robson | Date: | Wed, 17 May 2000 04:23:27 +0000 |
| Subject: | Re: Tricky or not ? upload & rename, store image-filenames in database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126@lists.php.net to get a copy of this message | ||
At 15:46 16/05/00 +0200, you wrote:
>1. First the data part of the record is entered (form1=data) and stored.
Presuming you are using autonumber fields as primary key for your records,
when you store the data use $id = mysql_insert_id($conn) to return the
value of the autonmuber (and primary key) field. Echo $id, maybe as a
hidden field, in form 2, then use the value in your image handling routine
on submitting the second form.
HTH,
Simon