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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.