[FX.php List] carry data over

Dale Bengston dbengston at preservationstudio.com
Wed Sep 6 08:11:01 MDT 2006


Actually, you don't need to re-find the record you just created. The  
variable you set to be the result of FMNEW() contains the typical FX  
data array for a single FMP record, including the record ID. You can  
reference this in the second form.

Dale

On Sep 6, 2006, at 7:13 AM, Alex Gates wrote:

> Gary,
>
> You'll need the recid of the page you want to edit -
> On your FileMaker layout, create a calculation field that is
> Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html
>
> Before you move to the second page, you'll first need to find the  
> record
> you just created.  Bring back the record ID, make it a session  
> variable,
> and use it on the following pages as the parameter in your edit.
>
> Your edit will look something like this:
>
> $edit=new FX($serverIP,$webCompanionPort,'FMPro7');
> 	$edit->SetDBData('FileName.fp7','LayoutName');
> 	$edit->SetDBPassword('password','username');
> 	$edit->AddDBParam('-recid', $recid);
> 	$edit->AddDBParam('AdditionalField1', $additionalfield1);
> 	$edit->AddDBParam('AdditionalField2', $additionalfield2);
> //(and so on)
> 	$editResult=$edit->FMEdit();
>
>
> The Ultimate Guide to FileMaker and PHP is a really great resource -
> page 152 walks you through a wonderful example.
>
> http://www.fmwebschool.com/filemaker_php.php
>
> I hope this helps - - I didn't go step by step through everything, but
> the Ultimate Guide does - - I've used it a lot and I find it very
> helpful.
>
> If anyone has anything to add that I have forgotten, please do so.
> I'm still trying to get my feet wet with this stuff, but I like to try
> to help whenever I can...
>
> Alex P. Gates
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Gary  
> Redmond
> Sent: Wednesday, September 06, 2006 3:19 AM
> To: FX.php Discussion List
> Subject: [FX.php List] carry data over
>
> Ok I have a form that asks a user for their name etc, when they press
> submit it adds the details to a new record however, I would like to  
> have
>
> another form on the next page that allows them to add more to the
> record.
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list