Is it possible to submit a form, and for the form data to be passed to more than 1 location at the same time?

I'm working on a shopping cart application using frames. When the user has input some data into a form and clicks SUBMIT, I need all the form data to be available to the code in two different frames at the same time.

I can write the form data to the MySQL database and read it back, but seeing as both of the frames need to act on the form data simultaneously, it's unlikely that script 'A' will finish (or even start) writing the data before script 'B' wants to read it.

I'm using PHP & MySQL by the way, with Javascript where appropriate. My hunch would be that the solution involves some javascript in the FORM element, but my Javascript talents aren't that hot.

Any suggestions anyone?