send information to multiple pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
steve_nlr
Forum Newbie
Posts: 1
Joined: Mon May 25, 2009 2:38 pm

send information to multiple pages

Post 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
Last edited by Benjamin on Tue May 26, 2009 10:47 am, edited 1 time in total.
Reason: Added [code=php] tags.
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: send information to multiple pages

Post 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
Post Reply