KM wrote:[color=blue]
> Hi,
>
> I am not sure if this is a HTML or PHP problem, so please bear with me.
>
> I have a PHP/HTML script to create and update records in a database.
> On page1.php, I ask the user for a reference number. Pressing Submit button
> launches page2.php
> On page2.php I check that this is unique and if so, I create a new record in
> the database. On the same page, I ask the user to complete the remainder of
> the fields. Press Submit button to take you to page 3.
> On page 3, I need to update the database record with the newly completed
> fields. The problem is that the variable (reference number) I created in
> page 1 is not carried to page 3. So the update doesn't happen.
>
> Can anyone give me some help on how to get around this.
>
> Apache 1.3.8, PHP 4
>
> Thanks
>
> Martyn
>[/color]
Add the reference number as a hidden form field in page 2, and get it in
page 3. Then you can carry it around with you!
--
Thanks,
Elliott C. Bäck
---------------------------------
www.elliottback.com/blog/ www.spreadIE.com