Re: [PHP-GENERAL] Tricky or not ? upload & rename, store image-filenames in database
[email protected] (Simon Robson)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
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