[FX.php List] Creating header record and x sub-records from one Submit

Tim 'Webko' Booth tim at nicheit.com.au
Wed Oct 10 01:33:09 MDT 2007


At 05:04 PM 10/10/2007, you wrote:
>Stuff the ID from the current master record in a $_SESSION -variable, such as
>$_SESSION['currentMainRecordID'];

I can do this bit.... Don't really need to do that in this case, as 
$mainRecordID = [ID from creating MasterRecord] will suffice on the same page.

>and use FMNew() for the sub records

And put the data from SubRecord 1 in the first record, SubRecord2 in 
the 2nd ... SubRecord n in the nth record how? That's the bit I need 
some assistance with...

> >
> > SubRecord 1
> > <input type="checkbox" name="pickMe" checked value="R1741841">
> > <input type="hidden" name="Account" value="BHP Steel">
> >
> > SubRecord 2
> > <input type="checkbox" name="pickMe" checked value="R1743443">
> > <input type="hidden" name="Account" value="BHP Steel">
> >
> > ...
> >
> > SubRecord n
> > <input type="checkbox" name="pickMe" checked value="R1743447">
> > <input type="hidden" name="Account" value="BHP Steel">
> >
> > <p align="right"><input type="submit" name="ak" value="Create Request"></p>
> > </form>
> >
> >
> > Thoughts?

Cheers

Webko

--
NicheIT Pty Ltd
http://www.nicheit.com.au 




More information about the FX.php_List mailing list