Web hosting solutions - 714Part IVConnectionsPassing data back to PHP from JavaScriptFinally,

714Part IVConnectionsPassing data back to PHP from JavaScriptFinally, we close the data loop by passing form values back to PHP with JavaScript. Listings38-5, 38-6, and 38-7 use JavaScript to force at least one check box to be checked at all times. Inaddition, it passes an array to a PHP script. We ve chosen to use frames here to maximize thespeed of the changes, and we wrote all values out by hand for clarity, rather than assemblingthem dynamically from a data source. Listing 38-5: Frameset (sandwich_frames.html) Listing 38-6:Form page (sandwichorder.html)