Page 1 of 1

send information to multiple pages

Posted: Mon May 25, 2009 3:01 pm
by steve_nlr
does anyone know how i can send variables to multiple pages. the code i currently have is as follows (its php used with the backbase framework)

Code: Select all

<div class='buttoninfo'>
        <form id=\"button2FL\" method=\"POST\" action=\"customerinfo.php\"  bf:destination=\"id('customerinformation')\" bf:mode=\"replace\">
                Call ID:        <input type='text' value='$row2FL2[Call_Num]' readonly='readonly' size='4' name='valuecallnum' class='infobox'></input>
                        &nbsp; &nbsp; &nbsp; &nbsp;
                Status = $row2FL2[Call_Status]
                <hr/>
                Customer: &nbsp; &nbsp; $row2FL1[1] $row2FL1[2]
                <input type='text' value='$row2FL1[Customer_ID]' readonly='readonly' size='4' name='valuecustomer' class='infobox'></input>
                <br/>
                Department: $row2FL2[Department]
                <br/>
                Asset: <input type='text' value='$row2FL2[Asset_Tag]' readonly='readonly'size='4' name='valueasset' class='infobox'></input>
        </form>
</div>
 
 
but i would like it to send the information to multiple pages and destinations

Code: Select all

action=\"customerinfo.php\" bf:destination=\"id('customerinformation')\" bf:mode=\"replace\"
action=\"callinfo.php\" bf:destination=\"id('callinformation')\" bf:mode=\"replace\"
action=\"assetinfo.php\" bf:destination=\"id('assetinformation')\" bf:mode=\"replace\"
 
any help much appreciated

Re: send information to multiple pages

Posted: Mon May 25, 2009 3:35 pm
by Mark Baker
steve_nlr wrote:but i would like it to send the information to multiple pages and destinations
any help much appreciated
An HTML form submission can only send information to one "action"

However, you could use a javascript onSubmit() to issue a series or Ajax calls, one for each submission "action"

Alternatively, you could write a single PHP script (the submission "action") that executes all three functions